Open WebUI or AnythingLLM can't find Ollama
The interface shows no models or reports a connection error because it can't reach the Ollama server at the configured address.
The message
Open WebUI: Server Connection Error / Ollama: Network Problem / No models available
Affects: Open WebUI, AnythingLLM, Ollama, Docker Desktop
Why is this happening?
If Open WebUI or AnythingLLM is running in a Docker container, localhost or 127.0.0.1 there means the container itself, not your PC. The Ollama server on the PC can only be reached from inside via host.docker.internal. Also, Ollama listens only on 127.0.0.1 by default, which blocks connections from other computers or networks.
How to fix it
- First check whether Ollama is running: open
http://127.0.0.1:11434in your browser. “Ollama is running” must appear. If not, start Ollama from the Start menu. - Open WebUI in Docker: Go to Admin Panel → Settings → Connections → “Manage Ollama API Connections” and enter
http://host.docker.internal:11434as the address. Save and reload the model list. - For a fresh installation of Open WebUI with Docker, use the official command:
docker run -d -p 3000:8080 --add-host=host.docker.internal:host-gateway -v open-webui:/app/backend/data --name open-webui --restart always ghcr.io/open-webui/open-webui:main - AnythingLLM Desktop automatically tries the usual addresses. In AnythingLLM in Docker on Windows, enter
http://host.docker.internal:11434in the LLM settings (on Linuxhttp://172.17.0.1:11434). - If it still doesn't work, let Ollama listen on all network interfaces: stop Ollama, open “Edit environment variables for this account” in the Start menu, create a new variable
OLLAMA_HOSTwith the value0.0.0.0, click OK, and restart Ollama. Allow Ollama in the Windows firewall only for private networks. If you no longer need access from other devices, delete the variable again; otherwise, on a laptop Ollama would be reachable in every Wi-Fi network that Windows has classified as “Private”. - If the interface is running on another computer, enter the IP address of your Ollama PC there, for example
http://192.168.1.20:11434.
Better not: Don't expose Ollama with 0.0.0.0 and then forward port 11434 in the router to the internet: the API has no password.
Set up from scratch again
If it still doesn’t work after that, a fresh setup step by step often helps:
- Your own ChatGPT with Ollama and Open WebUI
Run a language model locally on Windows - with the Ollama app, suitable models for 8 to 24 GB, context length, command line, and Open WebUI… - Chat with your own documents (AnythingLLM)
Set up AnythingLLM Desktop on Windows, load PDFs into a workspace, and ask questions locally — with sources and privacy.
Terms for this
Similar errors
- Ollama: model "…" not found, try pulling it first (model missing on this server)
- Docker Desktop: WSL needs updating / WSL 2 installation is incomplete
- Model forgets the beginning or ignores long texts (context length too small)
- Open WebUI: Ollama: 500, message='Internal Server Error' (Ollama reached, but model cannot respond)
- Open WebUI: WebSocket connection failed / is not an accepted origin (page keeps loading behind reverse proxy)
Sources
- https://docs.openwebui.com/troubleshooting/connection-error
- https://docs.openwebui.com/getting-started/quick-start/connect-a-provider/starting-with-ollama.md
- https://raw.githubusercontent.com/open-webui/open-webui/main/README.md
- https://docs.anythingllm.com/ollama-connection-troubleshooting
- https://docs.ollama.com/faq
Checked on Oct 21, 2026. Didn't help? Ask in the forum and name the graphics card, program, and the full message.