Vite / Vue 3 Default

Localhost 5173 Not Loading?

Vite has replaced 3000 with 5173 as the new standard. If you can't connect, check your dev server below.

Go to http://localhost:5173 →
Kill Port 5173 Generator
npx kill-port 5173

Why 5173? The New Standard.

If you recently switched from Create React App to Vite, you might be confused why localhost:3000 isn't working. Vite uses port 5173 by default to avoid conflicts.

Common Fix

1. Expose to Network (CLI)

By default, Vite only listens on local requests. To access it from your phone or another PC on the same wifi, add --host.

npm run dev -- --host

2. Change Vite Port back to 3000

Prefer the old way? Edit your vite.config.js file:

export default defineConfig({
  server: {
    port: 3000,
  },
})

Developer Port Reference Guide

Frontend & Web
3000 React / Node / Default 3001 React Secondary 5173 Vite / Vue 3 4200 Angular CLI 8000 Django / Gatsby 8080 Tomcat / Vue / Spring 8081 React Native 80 HTTP Standard 443 HTTPS / SSL
Backend & Infrastructure
5000 Flask / AirPlay 4000 Jekyll / Hexo 9000 SonarQube / PHP
Database & Cache
3306 MySQL 5432 PostgreSQL 27017 MongoDB 6379 Redis 11211 Memcached
DevOps & Data Science
8888 Jupyter Notebook 9200 Elasticsearch 9090 Prometheus 15672 RabbitMQ UI 8500 Consul 127.0.0.1 Loopback IP