---
title: "LAN-direct"
description: "Use your site address at full local speed when you're on the same network as your server."
url: https://vigiora.com/docs/remote-access/lan-direct
updated: 2026-10-30T05:36:08.000Z
---

# LAN-direct

> Use your site address at full local speed when you're on the same network as your server.

When you open `https://yourname.vigiora.com` on the server's own network, your traffic would normally go out to the Vigiora relay and back. LAN-direct avoids that: the app finds the server on your network and switches to a secure local address, `https://lan.yourname.vigiora.com:8444`. Video and recordings then load at local speed and don't count toward the [free plan relay limit](https://vigiora.com/docs/remote-access/free-plan-remote-video-limit).

## How it works

1. You open your site address as usual.
2. The app quietly checks whether it can reach the server on your network.
3. If it can, recordings play from the local address, and the app either switches over by itself or offers to.
4. If you leave the network, the app goes back to your site address on its own.

The local address uses the same certificate as your site address, so the browser shows no warning and the connection is encrypted.

## Turn LAN-direct on

LAN-direct is off by default. An administrator turns it on in the server's settings file.

1. **Edit the settings file**

   On the server, open `/etc/vigiora.env` as root and add this line:

   ```bash
   VIGIORA_LAN_DIRECT=1
   ```

2. **Restart the server**

   ```bash
   sudo systemctl restart vigiora
   ```

   The server adds `lan.yourname.vigiora.com` to its certificate and opens port 8444 on your network. This can take a few minutes.

3. **Allow port 8444 if needed**

   If ufw or firewalld is active on the server, allow TCP 8444, for example `sudo ufw allow 8444/tcp`.

| Setting | What it does | Default |
| --- | --- | --- |
| VIGIORA_LAN_DIRECT | Turns LAN-direct on (1) or off (0). | Off |
| VIGIORA_LAN_TLS_PORT | The local HTTPS port. | 8444 |
| VIGIORA_LAN_IP | The server's local address for lan.<name>. Leave empty to use the address of its main network interface. | Automatic |

> **Note**
>
> LAN-direct works on installs made with the Vigiora installer. Remote access must be on.

## Use it

When the app is on the local connection, a **Local network ⚡** pill shows at the bottom right. Click it to:

- **Use the public address**: go back to your site address.
- **Use the public address and stop switching automatically**.

When the server is reachable locally but the app hasn't switched, the pill says **Local network available**. Click it, then:

- **Switch to the local network**, or
- tick **Switch automatically on this browser** to switch every time.

In **Playback**, a **Local network** or **Remote** label shows where recordings are streaming from.

## Troubleshooting

| Problem | What to do |
| --- | --- |
| The pill never appears | Check LAN-direct is on and you opened the site address (not `http://…:8080`). Wait a few minutes after the restart for the certificate. |
| Couldn't switch to the local network | Your device may block local addresses for public names (some routers do, as "DNS rebinding protection"). Allow `vigiora.com` on the router, or use `http://<server-address>:8080` on your network. |
| Signed in as someone else on the local address | When switching, the app asks **Switch account?**. Continue only if you opened the link yourself. |

---

Source: https://vigiora.com/docs/remote-access/lan-direct · Last updated 30 Oct 2026, 05:36 UTC
