mirror of
https://github.com/open-webui/open-webui.git
synced 2026-03-11 00:04:08 -05:00
WebUI could not connect to Ollama | Windows Docker #4021
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @BIN6711 on GitHub (Feb 21, 2025).
Installation Method
Environment
Expected Behavior
Actual Behavior
ERROR [open_webui.routers.ollama] Connection error: Cannot connect to host 192.168.100.192:11434 ssl:default [Connect call failed ('192.168.100.192', 11434)]Reproduction Details
Steps to Reproduce:
docker run -d --gpus all --name ollama -p 11434:11434 -v "D:\MYFiles\Projects\AI\Models\Ollama:/root/.ollama" --restart always ollama/ollamacurl http://192.168.100.192:11434/api/tags✅ This correctly returns a JSON response with available models.
docker run -d -p 83:8080 -v open-webui:/app/backend/data -e OLLAMA_BASE_URL=http://192.168.100.192:11434 --name open-webui --restart always ghcr.io/open-webui/open-webui:main❌ Displays the error:
ERROR [open_webui.routers.ollama] Connection error: Cannot connect to host 192.168.100.192:11434 ssl:default [Connect call failed ('192.168.100.192', 11434)]
docker rm -f open-webui docker run -d -p --network=host -v open-webui:/app/backend/data -e OLLAMA_BASE_URL=http://host.docker.internal:11434 --name open-webui --restart always ghcr.io/open-webui/open-webui:main✅ This works, but only on the local machine. Other devices cannot connect.