Web & Dev
Risk: Low

Port 5173 β€” Vite Dev Server (Vue, Svelte, React)

Port 5173 is the default port assigned by the Vite build tool and development server for modern frontend frameworks (Vue 3, Svelte, React, Solid).

PORT NUMBER

5173

PROTOCOL

TCP

DEFAULT PROCESS

vite, node

FIREWALL TARGET

5173/tcp

Instant Terminal Fixes for Port 5173

macOS & Linux Terminal
1. Check who is listening on port 5173:
lsof -i :5173
2. Kill process occupying port 5173 (EADDRINUSE fix):
kill -9 $(lsof -t -i:5173)
3. UFW Firewall Allow rule:
sudo ufw allow 5173/tcp
Windows PowerShell (Admin)
1. Check listening port:
Get-NetTCPConnection -LocalPort 5173
2. Force kill process on port 5173:
Stop-Process -Id (Get-NetTCPConnection -LocalPort 5173).OwningProcess -Force
3. Docker Port Forwarding Mapping:
docker run -p 5173:5173 -d my-vite-app

Common Error Encountered

Port 5173 is in use, trying another one... -> http://localhost:5174/

Security Advisory & Hardening

Local development server. If Vite switches to 5174 or 5175, an existing Vite or background process is still bound to 5173.

Frequently Asked Questions

Port 5173 Questions & Answers

Common questions regarding default services, kill commands, and firewall configurations.

Port 5173 is commonly used for Vite Dev Server (Vue, Svelte, React). Port 5173 is the default port assigned by the Vite build tool and development server for modern frontend frameworks (Vue 3, Svelte, React, Solid).