Free | No tracking | Every fact with a source|German and English

Error / Home and connection

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

  1. First check whether Ollama is running: open http://127.0.0.1:11434 in your browser. “Ollama is running” must appear. If not, start Ollama from the Start menu.
  2. Open WebUI in Docker: Go to Admin Panel → Settings → Connections → “Manage Ollama API Connections” and enter http://host.docker.internal:11434 as the address. Save and reload the model list.
  3. 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
  4. AnythingLLM Desktop automatically tries the usual addresses. In AnythingLLM in Docker on Windows, enter http://host.docker.internal:11434 in the LLM settings (on Linux http://172.17.0.1:11434).
  5. 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_HOST with the value 0.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”.
  6. 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:

Terms for this

Similar errors

Sources

Checked on Oct 21, 2026. Didn't help? Ask in the forum and name the graphics card, program, and the full message.