vite --host

Category: Web App Development

vite --host

Expose the Vite dev server to the local network

Starts the dev server bound to 0.0.0.0 instead of localhost, letting phones and other machines on your LAN load the app. Vite prints the network URLs to reach it. Add --port to override the default 5173, or --strictPort to fail instead of switching ports.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.