What runs on that localhost port?
See which software uses a port, how to free it and how to move a tool elsewhere.
Find a port
| Port | Used by | Category |
|---|---|---|
| 80 | nginx, Apache HTTP Server, Caddy, ASP.NET Core containers before .NET 8 | Web servers |
| 443 | Caddy, Apache HTTP Server, nginx | Web servers |
| 1313 | Hugo | Frontend dev servers |
| 1433 | Microsoft SQL Server, SQL Server on Linux | Databases and caches |
| 1521 | Oracle Net Listener, Oracle Easy Connect, Oracle Database Free containers | Databases and caches |
| 2181 | Apache ZooKeeper, Apache Kafka 3.x | DevOps and infrastructure |
| 2375 | Docker Engine, Docker Desktop for Windows | DevOps and infrastructure |
| 3000 | Next.js, Nuxt, Ruby on Rails, Create React App | Frontend dev servers |
| 3001 | Next.js, Create React App, Uptime Kuma | Frontend dev servers |
| 3306 | MySQL, MariaDB | Databases and caches |
| 4000 | Phoenix, Jekyll, Apollo Server, Hexo | Backend frameworks |
| 4173 | Vite, Vite-based projects | Frontend dev servers |
| 4200 | Angular CLI, Ember CLI | Frontend dev servers |
| 4321 | Astro | Frontend dev servers |
| 4566 | LocalStack | DevOps and infrastructure |
| 5000 | Flask, macOS AirPlay Receiver, ASP.NET Core, Docker Registry | Backend frameworks |
| 5173 | Vite, SvelteKit, create-vite templates | Frontend dev servers |
| 5432 | PostgreSQL | Databases and caches |
| 5500 | Live Server | Frontend dev servers |
| 5601 | Kibana, OpenSearch Dashboards | DevOps and infrastructure |
| 5672 | RabbitMQ | Message brokers |
| 5678 | n8n, debugpy, VS Code Python debugger | DevOps and infrastructure |
| 6006 | Storybook, TensorBoard | Frontend dev servers |
| 6379 | Redis, Valkey | Databases and caches |
| 6443 | kube-apiserver, kubeadm, k3s, Docker Desktop Kubernetes | DevOps and infrastructure |
| 7860 | Gradio, Stable Diffusion web UI, Langflow, Hugging Face Docker Spaces | AI, ML and data tools |
| 8000 | Django, FastAPI CLI, Uvicorn, Python http.server | Backend frameworks |
| 8080 | Spring Boot, Apache Tomcat, webpack-dev-server, Jenkins | Web servers |
| 8081 | Metro, Expo CLI, Sonatype Nexus Repository | Frontend dev servers |
| 8443 | Keycloak, minikube, Apache Tomcat | Web servers |
| 8501 | Streamlit | AI, ML and data tools |
| 8787 | Cloudflare Wrangler, RStudio Server / Posit Workbench, Rocker RStudio images | Backend frameworks |
| 8888 | Jupyter Server, Jupyter Docker Stacks, Fiddler Classic, Charles Proxy | AI, ML and data tools |
| 8983 | Apache Solr, Embedded ZooKeeper in SolrCloud | Databases and caches |
| 9000 | PHP-FPM, MinIO, SonarQube, ClickHouse | Backend frameworks |
| 9090 | Prometheus, Cockpit | DevOps and infrastructure |
| 9092 | Apache Kafka, Redpanda | Message brokers |
| 9200 | Elasticsearch, OpenSearch | Databases and caches |
| 9229 | Node.js, Deno, Cloudflare Wrangler, VS Code | Debugging and tooling |
| 11434 | Ollama | AI, ML and data tools |
| 15672 | RabbitMQ management plugin | Message brokers |
| 27017 | MongoDB, mongosh | Databases and caches |
| 54321 | Supabase CLI | Backend frameworks |
No port in the list matches. Try a number like 8080 or a tool name like redis.
Fix common localhost problems
- What is localhost? Loopback, 127.0.0.1, ::1 and ports explained`localhost` is a hostname for your own computer. It resolves to a loopback address, `127.0.0.1` (IPv4) or `::1` (IPv6), so traffic to it never leaves the machine. The number after the colon, as in `localhost:3000`, is the port of the program that answers.
- localhost vs 127.0.0.1 vs ::1: what is the difference?`127.0.0.1` is the IPv4 loopback address and `::1` is the IPv6 one. `localhost` is a name that usually resolves to both. A server on only one address refuses connections to the other, which is why `localhost:3000` can fail while `127.0.0.1:3000` works.
- localhost refused to connect (ERR_CONNECTION_REFUSED): how to fix it"localhost refused to connect" means no program is listening on that port. Check that the dev server is still running, open the exact URL and port it printed, and make sure it listens on the address (`127.0.0.1` or `::1`) the client tries.
- Port already in use (EADDRINUSE): find and kill the process"Address already in use" means another process is listening on the port your server wants. Find its PID (`lsof -i :3000` on macOS and Linux, `netstat -ano | findstr :3000` on Windows), then stop it with `kill` or `taskkill`, or run your server on another port.
- How to change the dev server port (Next.js, Vite, Angular, Django)Pass the port on the command line, for example `next dev -p 3001`, `vite --port 3001` or `ng serve --port 4201`. To make it permanent, set it in the config file (`server.port` in Vite, Astro and Spring Boot) or in a variable such as `PORT`.
- How to open localhost on your phone or another deviceOn your phone, `localhost` means the phone itself. Start the dev server with `--host` so it listens on all interfaces, find your computer's LAN IP address, allow the port through the firewall, and open `http://<LAN IP>:<port>` on a device on the same network.
- How to use HTTPS on localhost with a trusted certificateInstall a local certificate authority with `mkcert -install`, create a certificate with `mkcert localhost 127.0.0.1 ::1`, and pass the key and certificate to your dev server. `next dev --experimental-https` and Vite's basic SSL plugin are quicker options.
- How to share localhost on the internet with a tunnelUse a tunnel. `cloudflared tunnel --url http://localhost:8080` gives a temporary `trycloudflare.com` URL with no account; `ngrok http 8080` needs an account. Tailscale Funnel and VS Code port forwarding also work. Anyone with the URL can reach your app.
- 0.0.0.0 vs localhost vs 127.0.0.1: what a server binds to`127.0.0.1` is the loopback address, reachable only from the same machine. `localhost` is a name that resolves to `127.0.0.1` or `::1`. `0.0.0.0` is the unspecified address: a server bound to it listens on every interface, so other devices can connect too.
- Port number ranges: well-known, registered and ephemeral portsIANA splits the 65,536 TCP and UDP ports into three ranges: system or well-known ports (0 to 1023), user or registered ports (1024 to 49151), and dynamic, private or ephemeral ports (49152 to 65535). Dev server defaults such as 3000 are user ports.
How localhost and ports fit together
localhost is the name your computer uses for itself. It resolves to the loopback address 127.0.0.1 (IPv4) or ::1 (IPv6), so traffic sent there never leaves the machine. A port is a number from 0 to 65535 that separates one listening program from another on the same address. When a dev server prints http://localhost:5173, it is listening on port 5173.
Ports 0 to 1023 are system ports and usually need administrator rights to open. That is why development tools pick numbers above 1024, such as 3000, 5173 or 8080. These numbers are conventions set by each tool, not rules, and every tool on this site can be moved to another port. See what localhost is and port number ranges for the details.