Localhost is your own computer acting as a web server during development. When you visit localhost:3000 in your browser, you're viewing your application running locally on your machine — not on the internet. It's where every vibe-coded project lives before deployment.
Localhost is your private development playground. Every change you make appears here instantly, letting you build and test before anyone else sees your work.
npm run dev)localhost:3000 in your browserNo internet connection needed. No hosting costs. Just you and your code.
The number after the colon is the port — think of it as a door number on your computer. Different apps use different ports:
| Port | Common Use |
|---|---|
| 3000 | Next.js, React apps |
| 5173 | Vite projects |
| 8080 | Various dev servers |
| 5432 | PostgreSQL database |
Localhost is step one. When your app works locally, you deploy it to make it accessible to everyone. Services like Vercel and Netlify handle this — taking your local project and putting it on the web.