5173 TCP
Modern Frontend Bundler Unassigned / De-facto Dev Standard

Port 5173 — Vite (React, Vue, Svelte, Solid)

The default development server port for Vite-powered frontend applications. Used by modern React, Vue 3, Svelte, SolidJS, and Vanilla TypeScript setups.

Default Protocol TCP / IP
Typical Localhost URL http://localhost:5173
Default Process node.exe
Primary Framework Vite

1. What is Port 5173?

Port 5173 was introduced by Evan You and the Vite team as a deliberate alternative to the crowded port 3000 space. The number 5173 is a playful leetspeak visual reference to the word 'VITE' ('V' resembles Roman numeral 5, 'I' is 1, 'T' is 7, 'E' resembles 3).

Before Vite, virtually every JavaScript framework defaulted to port 3000 or 8080. When developers ran full-stack apps (e.g., a React frontend and an Express backend), collision was guaranteed. Vite claimed 5173 as a dedicated, uncluttered namespace for lightning-fast native ES Module development servers.

2. How Port 5173 Works Under the Hood

1
Socket Creation & Binding

Process creates a Winsock socket (`AF_INET`/`AF_INET6`, `SOCK_STREAM`) and binds to local port 5173.

2
Kernel TCP Listener Table

Windows TCP/IP stack records the listening state in `MIB_TCPTABLE_OWNER_PID`.

3
Request Handling & Loopback Dispatch

Inbound HTTP/TCP traffic to `127.0.0.1:5173` is delivered directly through Windows loopback with zero physical NIC overhead.

Vite dev server operates completely differently from legacy Webpack: 1. It starts a lightweight Connect/HTTP server on `http://localhost:5173`. 2. Instead of bundling your entire dependency tree on boot, it transforms TypeScript/JSX on the fly via esbuild upon browser request. 3. It opens a WebSocket server on the same port (`ws://localhost:5173`) for sub-millisecond Hot Module Replacement (HMR). 4. When you save a file in VS Code, Vite sends an update payload over WebSocket, swapping only the changed module in the browser without reloading the page.

3. Common Conflicts & 'Port 5173 is in use, trying another one...'

⚠️ Common Error Message
Port 5173 is in use, trying another one...

Vite handles collisions by automatically incrementing the port: `Port 5173 is in use, trying another one... -> http://localhost:5174/`. While this prevents total crashes, it causes critical development issues: - Backend proxy servers (e.g. FastAPI or ASP.NET) forwarding requests to `http://localhost:5173` will receive `502 Bad Gateway`. - CORS policies configured on backend APIs allowing `http://localhost:5173` will block requests originating from `http://localhost:5174`. - Browser LocalStorage / Cookies are scoped per origin (`localhost:5173` vs `localhost:5174` do NOT share LocalStorage tokens!).

💡 Pro Tip: Vite automatically shifts to 5174 or 5175 if occupied. If your backend or proxy server expects frontend on 5173, CORS or proxy mismatches occur.

4. How to Find & Stop the Process on Port 5173

If port 5173 is locked by an orphaned process or background service, choose one of the following methods:

Terminal Commands (Manual) PortPeek (1-Click Instant)

PowerShell (Recommended):

Get-Process -Id (Get-NetTCPConnection -LocalPort 5173).OwningProcess | Stop-Process -Force

Classic CMD (Command Prompt):

for /f "tokens=5" %a in ('netstat -aon ^| findstr :5173') do taskkill /f /pid %a
PortPeek

Or simply use PortPeek

Never memorize netstat flags or parse PIDs again.

1. Press Win + Alt + P anywhere on Windows.
2. See Port 5173 with its owning process (node.exe) and memory usage.
3. Click Stop Process to kill it instantly, or click the item to launch in your browser.
Download PortPeek (Free & Open Source)

5. Standards & Related Ports

Official Specifications:

  • IANA Service Name and Transport Protocol Port Number Registry
  • RFC 793, Vite Core Server Specification
  • Windows Sockets 2 (Winsock) API Documentation