# Common localhost ports and what uses them Source: https://portlivo.com/guides/common-localhost-ports · Updated 2026-12-04 You see localhost:8080 or a port in an error and want to know what normally lives there. This is the list of default ports for the dev servers, databases and tools Mac developers run, and the one command that says what’s actually on a port right now. **In short:** The usual ones: 3000 (Next.js, Rails, Express, Nuxt), 5173 (Vite), 4200 (Angular), 8000 (Django, FastAPI, `php artisan serve`), 8080 (many Java and proxy servers), 5432 (Postgres), 3306 (MySQL), 6379 (Redis) and 27017 (MongoDB). A default is only a convention: to see what really holds a port, run `lsof -nP -iTCP: -sTCP:LISTEN`. ## What’s on a port right now ``` lsof -nP -iTCP:8080 -sTCP:LISTEN ``` Nothing printed means nothing of yours listens there. Add `sudo` to include processes of other users, such as system services. ## Web dev servers | Port | Default for | | --- | --- | | 3000 | Next.js, Nuxt, Rails, Create React App, many Express apps | | 4200 | Angular (`ng serve`) | | 4321 | Astro | | 5173 | Vite, and the frameworks on it: SvelteKit, Vue, React templates | | 4173 | `vite preview` | | 5000 | Flask, and AirPlay Receiver on macOS (see [port 5000 on Mac](https://portlivo.com/guides/port-5000-in-use-mac-airplay)) | | 8000 | Django, FastAPI (uvicorn), `php artisan serve`, `python3 -m http.server` | | 8080 | Spring Boot, Tomcat, webpack dev server, many proxies | | 4000 | Phoenix, Jekyll | | 1313 | Hugo | | 6006 | Storybook | | 8787 | Cloudflare Wrangler | ## Databases and queues | Port | Service | | --- | --- | | 5432 | PostgreSQL ([port in use?](https://portlivo.com/guides/postgres-port-5432-in-use-mac)) | | 3306 | MySQL and MariaDB ([port in use?](https://portlivo.com/guides/mysql-port-3306-in-use-mac)); 33060 is MySQL’s X Protocol | | 6379 | Redis and Valkey ([port in use?](https://portlivo.com/guides/redis-port-6379-in-use-mac)) | | 27017 | MongoDB | | 11211 | Memcached | | 9200 | Elasticsearch and OpenSearch | | 5672 / 15672 | RabbitMQ / its web dashboard | | 9092 | Kafka | | 8123 | ClickHouse (HTTP) | ## Tools and local services | Port | Tool | | --- | --- | | 8081 | Metro, the React Native and Expo bundler | | 9229 | Node.js debugger (`--inspect`) | | 8888 | Jupyter Notebook | | 11434 | Ollama | | 8025 / 1025 | Mailpit and MailHog: web inbox / SMTP | | 9000 / 9001 | MinIO: API / console | | 4566 | LocalStack | | 54321 – 54324 | Supabase local: API, database, Studio, mail | | 7000 | AirPlay Receiver on macOS | > These are defaults. Most tools move to the next free port when theirs is taken (Vite to 5174, Next.js to 3001), so the same project can turn up on a different port from one day to the next. ## Picking a port for your own project Pick one between 3000 and 9999 that isn’t in the lists above, give each project its own, and write it into the start script so it never changes. How to set it for each framework: [change the dev server port](https://portlivo.com/guides/change-dev-server-port). ## The one-click way: Portlivo Instead of guessing from a list, Portlivo shows what’s on every port on your Mac right now, in the menu bar: the project name, framework, port and how long it’s been up, with databases and Docker containers named too. Click a port to open it, copy its URL or stop it. ## Questions people ask **What runs on localhost:3000?** Usually a Next.js, Rails, Nuxt or Express dev server, since all of them default to 3000. Run `lsof -nP -iTCP:3000 -sTCP:LISTEN` to see which. **What runs on localhost:8080?** Often a Java server such as Spring Boot or Tomcat, the webpack dev server, or a proxy. `lsof -nP -iTCP:8080 -sTCP:LISTEN` says which. **Why is port 5000 taken on my Mac?** AirPlay Receiver listens on 5000 and 7000. Turn it off in System Settings → General → AirDrop & Handoff, or use another port.