Default dev server ports

Every dev server and database starts with a default port, and several share one. Next.js, Nuxt, and Rails all use 3000, and Django and Laravel’s artisan serve both use 8000. This index lists the default port of each tool that has a page here, maps the ports that more than one tool claims, and links a page for each tool on what happens when its port is busy and how to change it.

Updated

Port collision map

Default ports and the tools that use them, sorted by port number
PortTools that default to itShared
3000Next.js dev server, Nuxt dev server, Rails server3 tools share it
3306MySQL serverOne tool
4173Vite dev serverOne tool
4200Angular dev serverOne tool
4321Astro dev serverOne tool
5000Flask development serverOne tool
5173Vite dev serverOne tool
5432PostgreSQL serverOne tool
6006Storybook dev serverOne tool
8000Laravel artisan serve, Django runserver2 tools share it
33060MySQL serverOne tool

Ports shared by two or more tools: 3000 and 8000. Two of them cannot listen on the same port and address at once, so one needs a different port.

Frontend dev servers

Backend frameworks

Databases

Dev tooling

What the map covers

The collision map and the lists cover the tools that have a page here, and nothing else. A port missing from the map is not necessarily free on your machine, because any program can hold any port. Check on your own system before you rely on a number.

How the pages are verified

Every port page cites the tool’s official documentation for its default port, what happens when that port is busy, and how to change it. Each source records the date it was checked. Defaults change between versions, so a page names the version where a behaviour depends on one. Where the page describes how Rig starts a tool, that detail comes from Rig’s source code.

How the pages are kept current

Every page records the date of its last substantive update. A port page is published only with an official source, at least one way to change the port, and an answer to a question specific to that tool. Drafts are not published and do not appear in the map.

Frequently asked questions

Does a port missing from the collision map mean it is free?

No. The map covers only the tools that have a page here. Any other program can hold a port, so check the port on your own system with the port in use command generator or the commands in the free-a-port guide.

Related

Section links

https://userig.app/ports