Expose Ollama on the LAN
Ollama binds 127.0.0.1:11434 by default. A LAN IP then returns connection refused. Set OLLAMA_HOST=0.0.0.0:11434 on that machine. Steps below are from the Ollama FAQ.
Leave Ollama on loopback if the upstream is http://127.0.0.1:11434 on the same box as orouta.
If you run the Ollama app, set the variable with launchctl, then restart the app:
launchctl setenv OLLAMA_HOST "0.0.0.0:11434"If Ollama is a systemd service:
sudo systemctl edit ollama.serviceAdd:
[Service]Environment="OLLAMA_HOST=0.0.0.0:11434"Then:
sudo systemctl daemon-reloadsudo systemctl restart ollamaexport in your shell does not change the systemd process.
Windows
Section titled “Windows”- Quit Ollama from the taskbar.
- Open Settings (Windows 11) or Control Panel (Windows 10) and search for environment variables.
- Edit environment variables for your account.
- Create or edit
OLLAMA_HOSTwith value0.0.0.0:11434. - OK/Apply, then start Ollama from the Start menu.
On the Ollama machine, curl http://127.0.0.1:11434/api/tags should work. From the orouta machine, curl http://<lan-ip>:11434/api/tags should work too. Then orouta will list that host’s models on the next tags refresh.