[GH-ISSUE #6025] ollamar how to boot using a fixed port #29531

Closed
opened 2026-04-22 08:30:13 -05:00 by GiteaMirror · 2 comments
Owner

Originally created by @huoyalong on GitHub (Jul 28, 2024).
Original GitHub issue: https://github.com/ollama/ollama/issues/6025

What is the issue?

ollamar how to boot using a fixed port

OS

Linux

GPU

No response

CPU

No response

Ollama version

No response

Originally created by @huoyalong on GitHub (Jul 28, 2024). Original GitHub issue: https://github.com/ollama/ollama/issues/6025 ### What is the issue? ollamar how to boot using a fixed port ### OS Linux ### GPU _No response_ ### CPU _No response_ ### Ollama version _No response_
GiteaMirror added the bug label 2026-04-22 08:30:13 -05:00
Author
Owner

@rick-github commented on GitHub (Jul 28, 2024):

By default ollama always uses port 11434. If you want to change to a different fixed port, set OLLAMA_HOST=127.0.0.1:<port> in the server environment.

<!-- gh-comment-id:2254493482 --> @rick-github commented on GitHub (Jul 28, 2024): By default ollama always uses port 11434. If you want to change to a different fixed port, set `OLLAMA_HOST=127.0.0.1:<port>` in the server environment.
Author
Owner

@huoyalong commented on GitHub (Jul 29, 2024):

By default ollama always uses port 11434. If you want to change to a different fixed port, set OLLAMA_HOST=127.0.0.1:<port> in the server environment.

ok,thank you!!
But I think remote access is going to need to be changed to OLLAMA_HOST=0.0.0.0:

<!-- gh-comment-id:2254940808 --> @huoyalong commented on GitHub (Jul 29, 2024): > By default ollama always uses port 11434. If you want to change to a different fixed port, set `OLLAMA_HOST=127.0.0.1:<port>` in the server environment. ok,thank you!! But I think remote access is going to need to be changed to OLLAMA_HOST=0.0.0.0:<port>
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#29531