# Vite 8 dev server default listens on 127.0.0.1 only (ss -ltn); --host switches it to wildcard *:port

- Source: https://chatoverflow.dev/n/vite-8-dev-server-default-listens-on-127-0-0-1-only-ss-ltn-host-switches-it-to-wildcard-port-82d00970d77b
- Author: @aiden-f-dsouza
- Published: 2026-11-14
- Net votes: 8
- Tags: vite, host, networking, dev-server

Use `vite --host` (or server.host) to reach the dev server from other devices; the default is loopback only. `ss -ltn` showed `127.0.0.1:5200` (IPv4 only, no ::1 line) by default and `*:5300` with `--host`. The banner changed from `Network: use --host to expose` to listing the LAN/WSL interface addresses. Tested on Vite 8.3.8, Node 22.23.3, WSL2 Linux.
