OD OllamaDoctor
NETWORKING GUIDE · REMOTE HOSTING

How to Access Ollama Remotely on Windows (LAN Setup)

By Network Infrastructure Team Updated: October 30, 2026 Local Area Network Windows Defender Firewall Reverse Proxy Security Read Time: 10 min

If you have a powerful Windows desktop equipped with an RTX 4080 or 4090, you probably don't want to be chained to your desk to use local AI. You can turn your Windows PC into a dedicated LLM server, allowing you to access Ollama from your MacBook, iPad, smartphone, or second laptop anywhere in your home or office. Here is how to configure network binding and Windows Firewall rules safely.

Step 1: Bind Ollama to All Network Adapters (OLLAMA_HOST)

By default, Ollama binds strictly to loopback IP 127.0.0.1 (localhost), rejecting any network connection that originates from outside the physical computer. To listen on all network interfaces (Ethernet and Wi-Fi), set OLLAMA_HOST=0.0.0.0.

Run this command in PowerShell:

[Environment]::SetEnvironmentVariable('OLLAMA_HOST', '0.0.0.0', 'User')

Quit Ollama from the Windows taskbar system tray and restart it.

Step 2: Create Windows Defender Firewall Inbound Rule

Even with OLLAMA_HOST=0.0.0.0, Windows Defender Firewall will silently drop incoming TCP connection packets on port 11434 unless an explicit inbound rule exists.

Open PowerShell as Administrator and execute this rule creation command:

New-NetFirewallRule -DisplayName "Ollama Local Network Access" `
  -Direction Inbound `
  -LocalPort 11434 `
  -Protocol TCP `
  -Action Allow `
  -Profile Private
Security Best Practice: Notice the -Profile Private flag. This ensures the port is only open when your PC is connected to trusted Home/Office networks, and automatically locks down if you connect your laptop to public coffee shop Wi-Fi.

Step 3: Find Your Windows PC's Local IP Address

To connect from other devices on your network, you need your host PC's local IPv4 address (e.g. 192.168.1.150). Run in PowerShell:

(Get-NetIPAddress -AddressFamily IPv4 | Where-Object { $_.InterfaceAlias -notmatch "vEthernet|Loopback" -and $_.IPAddress -notmatch "^169\." }).IPAddress

Step 4: Test Connection from Another Device

On your phone, laptop, or second PC (connected to the same Wi-Fi), open a web browser and navigate to:

http://192.168.1.XXX:11434/

(Replace 192.168.1.XXX with your actual host IP).

If the configuration is successful, your browser will display the standard response: Ollama is running.

Connecting Common Remote Clients

1. Connecting Continue.dev or Roo Code (VS Code Extension)

On your remote laptop's VS Code, configure config.json:

{
  "models": [
    {
      "title": "Desktop Ollama Llama 3.1",
      "provider": "ollama",
      "model": "llama3.1:8b",
      "apiBase": "http://192.168.1.XXX:11434"
    }
  ]
}

2. Connecting Mobile Chat Clients (Enchanted / Ollama iOS)

In apps like Enchanted on iOS or Ollama App on Android, enter http://192.168.1.XXX:11434 as the host URL. You can now chat with your local GPU LLMs from your phone anywhere in your house!

Critical Security Notice: Never Expose Port 11434 to the Public Internet

Do not Port-Forward 11434 on your home router! Ollama has no built-in authentication or API key verification. Anyone on the internet who scans your public IP could delete your models, download unauthorized weights, or exhaust your GPU with malicious prompt loops.

If you need to access Ollama when away from home, use one of these secure methods:

Frequently Asked Questions

Why does the connection time out from my phone?

Ensure that your phone and your Windows PC are connected to the same Wi-Fi network and that your router does not have "Client Isolation" / "Guest Network" enabled, which blocks direct device-to-device communication.

Can multiple users send queries to Ollama simultaneously over the network?

Yes. Set [Environment]::SetEnvironmentVariable('OLLAMA_NUM_PARALLEL', '4', 'User') to allow up to 4 concurrent inference streams. Ensure you have sufficient VRAM for parallel KV caches.

← Environment Variables Reference Install Open WebUI on Windows →
Advertisement