Setup Jupyter Server for Remote Access

Q

How to Setup Jupyter Server for Remote Access?

✍: FYIcenter.com

A

If you want your Jupyter Server to be accessed remotely, you need to change the Jupyter Server and the Firewall configurations as shown in this tutorial.

1. Find out the Jupyter server IP address. For example, 192.168.1.10:

fyicenter$ nmcli 
  eno1: connected to eno1
      ethernet (e1000e), 39:...:39, hw, mtu 1500
      ip4 default
      inet4 192.168.1.10/24
      route4 0.0.0.0/0
      route4 192.168.1.0/24

  lo: unmanaged
      "lo"
      loopback (unknown), 00:00:00:00:00:00, sw, mtu 65536

2. Start Jupyter server with the IP address and a port number 8080:

fyicenter$ jupyter notebook --no-browser --ip=192.168.1.10 --port=8080

[W LabApp] 'ip' has moved from NotebookApp to ServerApp. 
  This config will be passed to ServerApp. 
  Be sure to update your config before our next release.
  ...
[I LabApp] JupyterLab application directory is 
  /usr/local/anaconda3/share/jupyter/lab

3. Open the firewall for port 8080.

fyicenter$ sudo firewall-cmd --zone=public --add-port=8080/tcp

fyicenter$ sudo firewall-cmd --runtime-to-permanent

4. Go to a remote computer and open http://192.168.1.200:8080/tree in a browser. You see the Jupyter web interface running correctly.

 

Jupyter Notebook Configuration JSON File

Shutdown Jupyter Server

Installing and Running Jupyter

⇑⇑ Jupyter Tutorials

2021-11-12, 701🔥, 0💬