[GH-ISSUE #22216] issue: Localhost fails when accessing the UI but 127.0.0.1 works #19662

Closed
opened 2026-04-20 02:10:49 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @jestfortest on GitHub (Mar 4, 2026).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/22216

Check Existing Issues

  • I have searched for any existing and/or related issues.
  • I have searched for any existing and/or related discussions.
  • I have also searched in the CLOSED issues AND CLOSED discussions and found no related items (your issue might already be addressed on the development branch!).
  • I am using the latest version of Open WebUI.

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

  • I have read and followed all instructions in README.md.
  • I am using the latest version of both Open WebUI and Ollama.
  • I have included the browser console logs.
  • I have included the Docker container logs.
  • I have provided every relevant configuration, setting, and environment variable used in my setup.
  • I have clearly listed every relevant configuration, custom setting, environment variable, and command-line option that influences my setup (such as Docker Compose overrides, .env values, browser settings, authentication configurations, etc).
  • I have documented step-by-step reproduction instructions that are precise, sequential, and leave nothing to interpretation. My steps:
  • Start with the initial platform/version/OS and dependencies used,
  • Specify exact install/launch/configure commands,
  • List URLs visited, user input (incl. example values/emails/passwords if needed),
  • Describe all options and toggles enabled or changed,
  • Include any files or environmental changes,
  • Identify the expected and actual result at each stage,
  • Ensure any reasonably skilled user can follow and hit the same issue.

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

  1. Run 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
  2. Access the webpage via localhost:3000

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

Image Image

Additional Information

No response

Originally created by @jestfortest on GitHub (Mar 4, 2026). Original GitHub issue: https://github.com/open-webui/open-webui/issues/22216 ### Check Existing Issues - [x] I have searched for any existing and/or related issues. - [x] I have searched for any existing and/or related discussions. - [x] I have also searched in the CLOSED issues AND CLOSED discussions and found no related items (your issue might already be addressed on the development branch!). - [x] I am using the latest version of Open WebUI. ### 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 - [x] I have read and followed all instructions in `README.md`. - [x] I am using the latest version of **both** Open WebUI and Ollama. - [x] I have included the browser console logs. - [x] I have included the Docker container logs. - [x] I have **provided every relevant configuration, setting, and environment variable used in my setup.** - [x] I have clearly **listed every relevant configuration, custom setting, environment variable, and command-line option that influences my setup** (such as Docker Compose overrides, .env values, browser settings, authentication configurations, etc). - [x] I have documented **step-by-step reproduction instructions that are precise, sequential, and leave nothing to interpretation**. My steps: - Start with the initial platform/version/OS and dependencies used, - Specify exact install/launch/configure commands, - List URLs visited, user input (incl. example values/emails/passwords if needed), - Describe all options and toggles enabled or changed, - Include any files or environmental changes, - Identify the expected and actual result at each stage, - Ensure any reasonably skilled user can follow and hit the same issue. ### 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 1. Run 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 2. Access the webpage via localhost:3000 ### 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 <img width="1370" height="818" alt="Image" src="https://github.com/user-attachments/assets/f5bc6a99-d7e5-420c-a7fb-3524ec1de88d" /> <img width="1370" height="818" alt="Image" src="https://github.com/user-attachments/assets/82681007-4b31-4896-8161-fc7b781bdf26" /> ### Additional Information _No response_
GiteaMirror added the bug label 2026-04-20 02:10:49 -05:00
Author
Owner

@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, localhost resolves to ::1 (IPv6 loopback), while 127.0.0.1 is explicitly IPv4. Docker's -p 3000:8080 flag binds to 0.0.0.0 (IPv4 only) by default on most Docker Desktop configurations. So when your browser tries to connect to localhost: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 200 response 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):

  1. Use 127.0.0.1:3000 instead of localhost:3000 (simplest)
  2. Enable IPv6 in Docker Desktop: Settings > Docker Engine > add "ipv6": true to the config JSON, then restart Docker
  3. Bind to both protocols explicitly: -p 127.0.0.1:3000:8080 -p [::1]:3000:8080

This is a well-known Docker + macOS interaction and not specific to Open WebUI. Closing as not a bug.

<!-- gh-comment-id:3999088898 --> @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, `localhost` resolves to `::1` (IPv6 loopback), while `127.0.0.1` is explicitly IPv4. Docker's `-p 3000:8080` flag binds to `0.0.0.0` (IPv4 only) by default on most Docker Desktop configurations. So when your browser tries to connect to `localhost: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 200` response 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): 1. Use `127.0.0.1:3000` instead of `localhost:3000` (simplest) 2. Enable IPv6 in Docker Desktop: Settings > Docker Engine > add `"ipv6": true` to the config JSON, then restart Docker 3. Bind to both protocols explicitly: `-p 127.0.0.1:3000:8080 -p [::1]:3000:8080` This is a well-known Docker + macOS interaction and not specific to Open WebUI. Closing as not a bug.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#19662