HTTPfy

Port 5173 (Vite dev server)

Default port of the Vite development server (Vue, React, Svelte projects). 4173 is vite preview.

Registered (user) port, 1024-49151 TCP Development tools Localhost or LAN only

What port 5173 is used for

Default port of the Vite development server (Vue, React, Svelte projects). 4173 is vite preview.

Security: should port 5173 be open?

Localhost or LAN only. Meant for localhost. Running vite --host on a public network exposes your source files; Vite had file-read bugs that bypassed server.fs.deny (CVE-2025-30208).

IANA assignment

Port 5173 is in the registered range and has no IANA assignment. The usage above is unofficial but widespread.

Check what is listening on port 5173

Linux: is anything listening on TCP 5173?
sudo ss -tlnp 'sport = :5173'
Linux / macOS: which process owns the port
sudo lsof -nP -i :5173
Older Linux / BSD (net-tools)
sudo netstat -tlnp | grep ':5173 '
Windows (Command Prompt)
netstat -ano | findstr :5173
Windows (PowerShell)
Get-NetTCPConnection -LocalPort 5173 -State Listen | Select LocalAddress,OwningProcess

Test it from outside

From another machine
nc -vz -w 5 HOST 5173
From Windows
Test-NetConnection HOST -Port 5173

Block port 5173 in the firewall

ufw
sudo ufw deny 5173/tcp
iptables
sudo iptables -A INPUT -p tcp --dport 5173 -j DROP
nftables
sudo nft add rule inet filter input tcp dport 5173 drop
Windows Firewall
New-NetFirewallRule -DisplayName 'Block TCP 5173' -Direction Inbound -Protocol TCP -LocalPort 5173 -Action Block

Related ports

All port numbers · Open port checker
Assignment data: IANA port number registry (public domain), retrieved 2026-11-10.