mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 02:48:13 -05:00
[GH-ISSUE #22216] issue: Localhost fails when accessing the UI but 127.0.0.1 works #19662
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 @jestfortest on GitHub (Mar 4, 2026).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/22216
Check Existing Issues
Installation Method
Docker
Open WebUI Version
v0.8.8
Ollama Version (if applicable)
0.17.6
Operating System
macOS Tahoe
Browser (if applicable)
Safari 26
Confirmation
README.md.Expected Behavior
When accessing the web page via either localhost or 127.0.0.1 the browser should show the UI.
Actual Behavior
Instead, it only works when using 127.0.0.1.
Below are the container logs:
2026-03-04 11:07:04.818 | INFO | uvicorn.protocols.http.httptools_impl:send:483 - 192.168.65.1:24205 - "GET /manifest.json HTTP/1.1" 200
It does show a successful request though.
Steps to Reproduce
Logs & Screenshots
2026-03-04 11:07:04.818 | INFO | uvicorn.protocols.http.httptools_impl:send:483 - 192.168.65.1:24205 - "GET /manifest.json HTTP/1.1" 200
Additional Information
No response
@Classic298 commented on GitHub (Mar 4, 2026):
This is not an Open WebUI issue — it's a Docker + macOS IPv6 resolution problem.
On modern macOS,
localhostresolves to::1(IPv6 loopback), while127.0.0.1is explicitly IPv4. Docker's-p 3000:8080flag binds to0.0.0.0(IPv4 only) by default on most Docker Desktop configurations. So when your browser tries to connect tolocalhost:3000, it resolves to[::1]:3000(IPv6), which Docker isn't listening on — causing the connection to fail or partially load.The fact that your container logs show a successful
GET /manifest.json 200response likely means the browser fell back to IPv4 for that one request, but subsequent resource loads (JS, CSS, WebSocket) may have failed on IPv6.Fix options (pick one):
127.0.0.1:3000instead oflocalhost:3000(simplest)"ipv6": trueto the config JSON, then restart Docker-p 127.0.0.1:3000:8080 -p [::1]:3000:8080This is a well-known Docker + macOS interaction and not specific to Open WebUI. Closing as not a bug.