Port 8888 (Jupyter)

Port 8888 is best known as the default port of Jupyter, the environment for writing and running Python code in notebooks through the browser.

Key facts

Port
8888
Protocols
TCP
Range
Registered port, 1024-49151
IANA service name
ddi-tcp-1, ddi-udp-1
Unofficial use
The use described on this page is not the IANA assignment for this port. Source (opens in a new tab) Checked on 30.11.2026

IANA assigns ports in this range to services on request, under RFC 6335.

About port 8888

Port 8888 is best known as the default port of Jupyter, the environment for writing and running Python code in notebooks through the browser. It runs over TCP. This is unofficial use: in the IANA registry, port 8888 is registered for the ddi-tcp-1 service, and it's marked there as a port with reported unauthorized use.

According to the Jupyter Server documentation, the server runs on 127.0.0.1 and port 8888 by default, and it's reachable only from the computer it runs on.

What port 8888 is used for

  • JupyterLab and Jupyter Notebook: the jupyter lab and jupyter notebook commands start a server on port 8888 and open it in the browser.
  • Working on a remote server: you run Jupyter on a server with more resources, and reach it from your own computer through an SSH tunnel.
  • Data analysis and model development: Jupyter notebooks are used for data analysis, charts, and code experiments.

Port 8888 in the firewall

There's no need to open port 8888 in the firewall. The recommended way to reach Jupyter on a remote server is an SSH tunnel, which forwards the server's port 8888 to your computer over an encrypted connection, through port 22: ssh -L 8888:127.0.0.1:8888 user@server.

When you do need direct access, allow it only from specific addresses, and set up HTTPS and a password:

  • UFW: ufw allow from 203.0.113.10 to any port 8888 proto tcp
  • firewalld: firewall-cmd --permanent --add-rich-rule='rule family="ipv4" source address="203.0.113.10" port port="8888" protocol="tcp" accept'

Risks and security

Jupyter runs any code written in a notebook, with the permissions of the user who started it. So anyone who gets access to a Jupyter server can run commands on the server, and it's important to keep it locked down.

  • Keep Jupyter listening only on 127.0.0.1, the default, and reach it through an SSH tunnel.
  • Don't turn off token or password authentication, and don't share a link that contains the token.
  • Run Jupyter as a regular user, not as root.
  • When you need public access, set up HTTPS, a strong password, and IP address restrictions, or use a dedicated multi-user solution.

Commands to check and configure

  • jupyter lab --no-browser --port=8888

    Starts JupyterLab on port 8888 on the server, without opening a browser, and shows the address with the token.

  • ssh -L 8888:127.0.0.1:8888 user@server

    Opens an SSH tunnel from your computer to the server, so that http://127.0.0.1:8888 in your browser reaches Jupyter on the server.

  • jupyter server list

    Shows the running Jupyter servers, with the address and token of each one.

  • ss -tlnp | grep ':8888 '

    Shows which process is listening on port 8888 and on which address (requires root for the process details).

  • ufw allow from 203.0.113.10 to any port 8888 proto tcp

    Allows access to port 8888 only from the given IP address (UFW).

  • firewall-cmd --permanent --add-rich-rule='rule family="ipv4" source address="203.0.113.10" port port="8888" protocol="tcp" accept'

    Allows access to port 8888 in firewalld only from the given IP address. Then run firewall-cmd --reload.

Port 8888 in the IANA registry

Port Protocol Service IANA registry description
8888 TCP ddi-tcp-1 NewsEDGE server TCP (TCP 1)
8888 UDP ddi-udp-1 NewsEDGE server UDP (UDP 1)

Data source: IANA Service Name and Transport Protocol Port Number Registry (opens in a new tab)

Port 8888 FAQ

How do I connect to Jupyter running on a remote server?

Start Jupyter on the server, and open an SSH tunnel from your computer with ssh -L 8888:127.0.0.1:8888 user@server. Then open the address the server showed in your browser, including the token. The connection is encrypted, and port 8888 stays closed to the internet.

Where do I find the Jupyter token?

The token appears in the address shown when the server starts. If the address is no longer on the screen, run jupyter server list to get the full address of each running server.

Do I need to open port 8888 in the firewall?

No. An SSH tunnel lets you work with Jupyter on a remote server without opening port 8888. Open it only when there's no other choice, and only to specific addresses, with HTTPS and a password.

How do I run Jupyter on a different port?

Add the --port option to the command, for example jupyter lab --port=8890. When you work with an SSH tunnel, update the port number there as well.

Shopping cart

Your cart is emptyYou can start with one of our popular plans.

Site search

Accessibility

Text size
100%
Accessibility statement