Skip to content
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

add port finding tip on Jupyter page #202

Merged
merged 1 commit into from
May 15, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading