-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Auto-select LISTEN_PORT #5
Comments
Of course, then we'd need some way of querying what port is being used so the LISTEN_PORT could be passed along to a cloud server or somehow displayed to the user so they know what it is. |
I am not quite sure how to indicate the port to the user, otherwise it is not very useful. |
You could just have a function that would return the currently-mapped port. Displaying the port to the user would be up to the UI/UX (if necessary). I don't really have an application in mind yet. I just installed a TP-Link smart bulb and was impressed with how little the consumer needed to know in order to make the bulb work. I believe I can improve on the process though. I'm guessing I can use printAllPortMappings to find a free port. Right? I'll need to do that before I addPortMapping though. |
If the device auto-selected the port, I would then "register" the device/IP/Port with a cloud service. The cloud service would have a UI (or I'd make an app) that would control the device so the end user wouldn't have to know (and wouldn't understand) the port number. The idea is to make the whole process plug-and-play to make it idiot-proof. |
So yeah, zero config. |
I would also need this functionality… i use an app to call the user from 4g and so the app need to know the port to get it… as i want each user to get multiple devices i want the ports to be open in a sequence way first detecting the ports than open sequentially within a range.. any one know how to access the info that is printed in terminal? because it appear that everything is there just need to make the logic to work.. i would apreciate any help or ideas.. |
Can you elaborate on your setup a little more? Perhaps an example will help here. Like an actual scenario with port numbers and clients. |
This is more of a feature request than an issue.
It would be great if we (well, you actually) could automatically select a LISTEN_PORT that is free/available instead of having to manually select one.
The text was updated successfully, but these errors were encountered: