Skip to content

Commit

Permalink
docs: accessing the server on WSL2 from your LAN (#13393)
Browse files Browse the repository at this point in the history
  • Loading branch information
sapphi-red committed May 31, 2023
1 parent aec1c1d commit 2872d55
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions docs/config/server-options.md
Expand Up @@ -34,6 +34,13 @@ The second case is when wildcard hosts (e.g. `0.0.0.0`) are used. This is becaus

:::

::: tip Accessing the server on WSL2 from your LAN

When running Vite on WSL2, it is not sufficient to set `host: true` to access the server from your LAN.
See [the WSL document](https://learn.microsoft.com/en-us/windows/wsl/networking#accessing-a-wsl-2-distribution-from-your-local-area-network-lan) for more details.

:::

## server.port

- **Type:** `number`
Expand Down

0 comments on commit 2872d55

Please sign in to comment.