OLLAMA_HOST=0.0.0.0 on the server. Point your client at the Mac’s Tailscale IP on port 11434. Done — your private AI is accessible from anywhere, encrypted, no open ports.The gap between “I have a local AI server” and “I can use it from anywhere” used to require setting up a VPN, opening firewall ports, or renting a VPS to proxy traffic. Tailscale closes that gap in about 10 minutes. It creates a private encrypted network between your devices — your Mac Mini at home and your laptop at the coffee shop behave as if they’re on the same LAN.
Here’s the exact setup.
“Tailscale + Ollama is the combination that makes a home AI server actually usable. Without remote access, your Mac Mini only helps you when you’re home.”
What You Need
- A Mac running Ollama (your AI server — Mac Mini, MacBook, anything)
- A second device you want to access from (laptop, phone, tablet)
- A free Tailscale account (tailscale.com — free for personal use, up to 100 devices)
- 15 minutes
Step 1: Configure Ollama to Listen on All Interfaces
Step 2: Install Tailscale on Both Devices
Step 3: Connect and Test
Step 4: Access from iPhone or iPad
Install Tailscale from the App Store on your iPhone. Sign in. Now apps like Enchanted LLM (a native iOS Ollama client) can connect to your home Mac by pointing at http://100.x.x.x:11434. You have a private AI assistant on your phone that runs on your Mac hardware — no API costs, no data leaving your network.
Security: What You Should Know
- Tailscale traffic is encrypted end-to-end using WireGuard — nobody between your devices can intercept it
- Only devices signed into your Tailscale account can access your Ollama server — it’s not open to the internet
- Do NOT use
OLLAMA_HOST=0.0.0.0without Tailscale (or another VPN) — you’d be exposing your AI server to your local network and potentially the internet - Optionally, add Tailscale ACLs to restrict which devices can reach which ports if you’re on a shared network
Bonus: Use a Stable Hostname Instead of IP
Tailscale’s MagicDNS feature assigns each device a stable hostname — so instead of 100.x.x.x:11434, you can use mac-mini.tail12345.ts.net:11434. Enable MagicDNS in your Tailscale admin panel → DNS settings. Now you never need to remember an IP address again.
Related Content
Run AI Locally on Mac Mini: The Complete Guide
Build Your Own Private ChatGPT with Open WebUI + Ollama
Frequently Asked Questions
Is Tailscale free?
Yes — Tailscale’s personal plan is free for up to 100 devices and 3 users. For a home AI server setup connecting your own Mac, laptop, and phone, you’ll never need to pay.
Does this work on iPhone and Android?
Yes. Tailscale has apps for iOS and Android. Any device signed into your Tailscale account can reach your Ollama server. On iOS, apps like Enchanted LLM support a custom Ollama host URL. On Android, use any OpenAI-compatible client pointed at your Ollama URL.
Will this work if my Mac is on a home router with NAT?
Yes — that’s exactly what Tailscale is designed for. It handles NAT traversal automatically using DERP relay servers as fallback when direct connections aren’t possible. In practice, most connections are direct (peer-to-peer) with relay only as a fallback.
Your private AI, everywhere.
Ten minutes of setup, and your home AI server follows you wherever you go. No API costs. No data leaving your control. This is what local AI is supposed to feel like.
