All Localhost Ports
A complete guide to localhost ports used in web development. Find which port your framework, server, or database uses by default.
Most Popular Ports
localhost:3000
React, Next.js, Express
localhost:8080
Vue CLI, Tomcat, Jenkins
localhost:5000
Flask, ASP.NET Core
localhost:4200
Angular CLI
localhost:8000
Django, PHP built-in
localhost:5173
Vite (Vue, React, Svelte)
Frontend Framework Ports
| Port | Framework / Tool | Link |
|---|---|---|
| 3000 | React, Next.js, Create React App, Express.js | Guide → |
| 3001 | React (secondary), BrowserSync | Guide → |
| 4200 | Angular CLI | Guide → |
| 5173 | Vite (Vue, React, Svelte) | Guide → |
| 8080 | Vue CLI, Webpack Dev Server | Guide → |
Backend Framework Ports
| Port | Framework / Tool | Link |
|---|---|---|
| 3000 | Express.js, Node.js apps | Guide → |
| 4000 | Phoenix (Elixir), GraphQL servers | Guide → |
| 5000 | Flask (Python), ASP.NET Core | Guide → |
| 8000 | Django, PHP built-in server, Laravel | Guide → |
| 9000 | PHP-FPM, SonarQube | Guide → |
Web Server Ports
| Port | Server / Service | Link |
|---|---|---|
| 80 | HTTP (Apache, Nginx, XAMPP) | Guide → |
| 443 | HTTPS (SSL/TLS) | Guide → |
| 8080 | Tomcat, Jenkins, alternate HTTP | Guide → |
| 8888 | Jupyter Notebook | Guide → |
| 9090 | Prometheus, Cockpit | Guide → |
| 4848 | GlassFish Admin Console | Guide → |
Database Ports
localhost:3306
MySQL, MariaDB
localhost:5432
PostgreSQL
localhost:27017
MongoDB
localhost:6379
Redis
localhost:1433
Microsoft SQL Server
Network Protocol Ports
Other Application Ports
| Port | Application | Link |
|---|---|---|
| 1745 | Custom applications | Guide → |
| 5774 | Custom applications | Guide → |
| 11501 | Custom applications | Guide → |
Understanding Localhost
127.0.0.1 (localhost) is your computer's loopback address. When you access localhost:3000, you're connecting to a server running on your own machine at port 3000.
Common Port Ranges
- 0-1023: Well-known ports (HTTP, FTP, SSH)
- 1024-49151: Registered ports (databases, dev servers)
- 49152-65535: Dynamic/private ports
Port Already in Use?
If you get "port already in use" error, you can find what's using it:
- Windows:
netstat -ano | findstr :3000 - Mac/Linux:
lsof -i :3000