Skip to content

Commit

Permalink
add port finding tip on Jupyter page
Browse files Browse the repository at this point in the history
  • Loading branch information
nd996 committed May 15, 2024
1 parent 4346dad commit edad477
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions docs/source/applications/jupyter.rst
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,16 @@ Finally ``Ctrl + left mouse click`` on the link from the first terminal session
ssh -L 8888:localhost:8889 [email protected] ssh -N -L 8889:localhost:8888 node112
.. tip::

To help find an open port you can try running this command:

.. code-block:: console
for p in {8000..9000}; do m=$(netstat -l|grep -c localhost:${p}); if [[ $m == 0 ]]; then echo "try $p"; break; fi; done
*Thanks to Felix Ulrich-Oltean for this suggestion*

.. FIXME: below method not working.
..
Expand Down

0 comments on commit edad477

Please sign in to comment.