Back to Port Numbers

8888 Jupyter TCP

Reference for TCP port 8888, commonly associated with Jupyter.

What it's for

Port 8888 is the default port for Jupyter Notebook and JupyterLab, the widely used interactive computing environment popular in data science and machine learning workflows. Running jupyter notebook or jupyter lab typically starts a local web server on this port, which you then access through a browser to write and run notebook cells.

Protocol basics

Jupyter serves its interface over standard HTTP (with WebSocket connections handling the live cell execution and output streaming), with a token-based authentication scheme by default to prevent unauthorized access to what is effectively a code-execution environment on your machine. This authentication detail matters more than it might seem — a Jupyter server with authentication disabled and exposed on a network (a common misconfiguration in cloud data-science environments) effectively grants remote code execution to anyone who can reach it, since notebook cells can run arbitrary code.