Skip to content

Commit

Permalink
Merge pull request #202 from university-of-york/bugfix/quickFixes
Browse files Browse the repository at this point in the history
add port finding tip on Jupyter page
  • Loading branch information
nd996 authored May 15, 2024
2 parents 0fade61 + edad477 commit 9981e1b
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 9981e1b

Please sign in to comment.