[GH-ISSUE #7479] Cannot change WebUI port on bare metal python installation #30291

Closed
opened 2026-04-25 04:33:12 -05:00 by GiteaMirror · 0 comments
Owner

Originally created by @i0ntempest on GitHub (Nov 29, 2024).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/7479

Bug Report

Installation Method

pip with venv

Environment

  • Open WebUI Version: 0.4.6

  • Ollama (if applicable): 0.4.6

  • Operating System: macOS 15.0.2

  • Browser (if applicable): N/A

Confirmation:

  • I have read and followed all the instructions provided in the README.md.
  • I am on 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 the exact steps to reproduce the bug in the "Steps to Reproduce" section below.

Expected Behavior:

WebUI port is configurable per official guide

Actual Behavior:

It is hardcoded in __init__.py

Description

Bug Summary:
Setting env var PORT does not change WebUI port

Reproduction Details

Steps to Reproduce:
Follow the official guide to set the environment variable PORT=38080 and run open-webui serve. The webui port stays on 8080.

Logs and Screenshots

Browser Console Logs:
N/A

Docker Container Logs:
N/A

Screenshots/Screen Recordings (if applicable):
N/A

Originally created by @i0ntempest on GitHub (Nov 29, 2024). Original GitHub issue: https://github.com/open-webui/open-webui/issues/7479 # Bug Report ## Installation Method pip with venv ## Environment - **Open WebUI Version:** 0.4.6 - **Ollama (if applicable):** 0.4.6 - **Operating System:** macOS 15.0.2 - **Browser (if applicable):** N/A **Confirmation:** - [x] I have read and followed all the instructions provided in the README.md. - [x] I am on the latest version of both Open WebUI and Ollama. - [ ] I have included the browser console logs. - [ ] I have included the Docker container logs. - [x] I have provided the exact steps to reproduce the bug in the "Steps to Reproduce" section below. ## Expected Behavior: WebUI port is configurable per official guide ## Actual Behavior: It is hardcoded in `__init__.py` ## Description **Bug Summary:** Setting env var `PORT` does not change WebUI port ## Reproduction Details **Steps to Reproduce:** Follow the [official guide](https://docs.openwebui.com/getting-started/advanced-topics/env-configuration#port) to set the environment variable `PORT=38080` and run `open-webui serve`. The webui port stays on 8080. ## Logs and Screenshots **Browser Console Logs:** N/A **Docker Container Logs:** N/A **Screenshots/Screen Recordings (if applicable):** N/A
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#30291