Default port of the Vite development server (Vue, React, Svelte projects). 4173 is vite preview.
Default port of the Vite development server (Vue, React, Svelte projects). 4173 is vite preview.
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).
Port 5173 is in the registered range and has no IANA assignment. The usage above is unofficial but widespread.
sudo ss -tlnp 'sport = :5173'sudo lsof -nP -i :5173sudo netstat -tlnp | grep ':5173 'netstat -ano | findstr :5173Get-NetTCPConnection -LocalPort 5173 -State Listen | Select LocalAddress,OwningProcessnc -vz -w 5 HOST 5173Test-NetConnection HOST -Port 5173sudo ufw deny 5173/tcpsudo iptables -A INPUT -p tcp --dport 5173 -j DROPsudo nft add rule inet filter input tcp dport 5173 dropNew-NetFirewallRule -DisplayName 'Block TCP 5173' -Direction Inbound -Protocol TCP -LocalPort 5173 -Action BlockAll port numbers · Open port checker
Assignment data: IANA port number registry (public domain), retrieved 2026-11-10.