Apply

How do you secure a home AI server?

Updated November 3, 2026.

Secure a home AI server by keeping it off the public internet, reaching it over a private network, requiring sign-in with a second step, and keeping the software updated and backed up. A home server holds your conversations and your documents, so treat each of the steps below as a check you can actually test.

1. Know what is listening

Start with the model server. Ollama's FAQ says it binds 127.0.0.1 port 11434 by default and that the OLLAMA_HOST environment variable changes the bind address. So the safest state is the default, and any change should be deliberate. The same FAQ says cross-origin requests are allowed from 127.0.0.1 and 0.0.0.0 by default and that more origins are added with OLLAMA_ORIGINS; add only the origins you need. After any change, check from a second device which addresses answer.

2. Use a private network, not a forwarded port

Open WebUI's Tailscale guide describes a WireGuard-based mesh network, a tailnet, in which each device gets a stable hostname and the instance stays accessible only to devices on that tailnet, with no ports to open. Install Tailscale on the server and on each client. Our page on reaching a home AI server remotely walks through that setup. For browser features that need HTTPS, such as voice calls, the HTTPS guide shows how Tailscale can provision a certificate and how tailscale serve proxies to the local port.

3. Require sign-in, with a second step

A private network does not replace accounts. Give every person their own account. CISA recommends passwords that are long, random and unique, at least 16 characters, stored in a password manager, and asks for multifactor authentication wherever it is offered. Open WebUI has a setting that requires an authenticator code for all users. Its documentation also warns that turning it on or off signs everyone out, and that the encryption key behind it must stay stable, so write that key down in your backup notes.

If you use Tailscale as the sign-in, the Open WebUI guide explains that Tailscale Serve sets a user header the app can trust. It also warns that when Tailscale runs in the same network context as Open WebUI, people could bypass the proxy and reach the app directly, and tells you to use Tailscale ACLs to restrict access to port 443. Test it: try the direct port from a client and confirm it is refused.

4. Be careful with public sharing

The same guide offers Tailscale Funnel for public access and warns that it makes the instance accessible to anyone on the internet and that authentication must be configured first. If you only want to show something to a friend, create them an account on the private network instead.

5. Update and back up

CISA says many software updates fix security risks, recommends installing updates as soon as possible and turning on automatic updates where possible. That covers the operating system, Open WebUI, Tailscale and Ollama. Before updating, take a backup of the model folder and chat data; our page on backing up a private AI system explains how. Keep that backup protected, because it is a copy of your private data.

Quick test

From a phone that is not on your tailnet, try to open the server by its local address and by your home internet address. Both should fail. From a device on the tailnet, you should reach the sign-in page, and signing in should ask for the second step.

Frequently asked questions

Should I forward a router port to my AI chat interface?

Avoid it. Open WebUI's documentation describes a Tailscale private network instead, where the instance stays accessible only to devices on your tailnet and no ports need to open.

Is it safe to turn on Tailscale Funnel?

Only after sign-in is configured. Open WebUI's documentation warns that Funnel makes the instance accessible to anyone on the internet.

Does Ollama listen on the network by default?

No. It binds 127.0.0.1 port 11434 by default, and the OLLAMA_HOST variable changes the bind address.

Related

Sources

Sources checked November 3, 2026. Figures that depend on your exact model, runtime or machine are estimates; check the source or test on your own hardware.

Adults only (18+). Private uncensored AI · Terms · Privacy · All guides