Search for available free ports if default port 8000 is not available
See original GitHub issueThanks for the awesome tool! We are starting to use jupyterlab-nvdashboard
on a multi-user HPC system. I am trying to figure out what will happen if two user jobs land on the same compute node and both users run the server in their job scripts as follows.
python -m jupyterlab_nvdashboard.server &
Will the first user get the default port 8000 and then the second user get an error or warning? Or will the jupyterlab_nvdashboard.server
look for available ports?
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
How to make sure that a certain Port is not occupied by any ...
Use the netstat -anp | find "port number" command to find whether a port is occupied by an another process or not. If...
Read more >Troubleshooting "Port 80 in use issue" - Anash's Knowledge ...
Open a command prompt and type netstat –anb. This will give you the list of all processes listening on various ports on your...
Read more >How to Open Ports in Windows Firewall And Check Open Ports
Answer: Open the Run command and type cmd to open the command prompt. Type: “netstat –na” and hit enter. Find port 445 under...
Read more >Change listen port for Confluence - Atlassian Documentation
You need to modify both the server port (default is 8000) and the connector port (default is 8090) to ports that are free...
Read more >Enable ports 80 (HTTP) and 443 (HTTPS) - PaperCut
Port 9191 is also used for server-to-server and client-to-server communication so it's important that this port continue to be made available. Also make...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Can this problem can be reproduced by running nvdashboard from two Python environments on the same system at the same time?
The following will launch the Bash magic that extracts the port number using
netstat
. Seems brittle though and am not sure how to go about doing this from within Python.