Remote Jupyter Notebook Access

Setting up remote access to a Jupyter Notebook Server is easy, but there are a few tricks. Generally, follow these great instructions: Jupyter public server.

Then, depending on how your network is setup, you will need to take these steps:

  1. If your computer is behind a router, set up port forwarding to your computer’s IP address for the jupyter port (and whichever other ports you want).
  2. For protection, set up your firewall. Install gufw (a gui based firewall), default to deny. Then, for each ip address range you want to allow access, enter:
    sudo ufw allow from xxx.xxx.xxx.0/24

    to allow all traffic in the range xxx.xxx.xxx.0 to xxx.xxx.xxx.254. This way you can limit access to your server to computers on, say, your local network. Then, with VPN, you can log in to your local network from anywhere, and get access to your server.