[GH-ISSUE #5135] HOW CAN I CHANGE THE PORT OLLAMA SERVE USES #3237

Closed
opened 2026-04-12 13:44:55 -05:00 by GiteaMirror · 2 comments
Owner

Originally created by @Udacv on GitHub (Jun 19, 2024).
Original GitHub issue: https://github.com/ollama/ollama/issues/5135

What is the issue?

My port 11434 is occupied. I wonder how can I change one?
I've tried "OLLAMA_HOST=127.0.0.1:11435 ollama serve", but my cmd cannot understand.

OS

Windows

GPU

AMD

CPU

AMD

Ollama version

0.1.44

Originally created by @Udacv on GitHub (Jun 19, 2024). Original GitHub issue: https://github.com/ollama/ollama/issues/5135 ### What is the issue? My port 11434 is occupied. I wonder how can I change one? I've tried "OLLAMA_HOST=127.0.0.1:11435 ollama serve", but my cmd cannot understand. ### OS Windows ### GPU AMD ### CPU AMD ### Ollama version 0.1.44
GiteaMirror added the bug label 2026-04-12 13:44:55 -05:00
Author
Owner

@Udacv commented on GitHub (Jun 19, 2024):

Who can help me? /(ㄒoㄒ)/~~

<!-- gh-comment-id:2177826782 --> @Udacv commented on GitHub (Jun 19, 2024): Who can help me? /(ㄒoㄒ)/~~
Author
Owner

@jmorganca commented on GitHub (Jun 19, 2024):

If using cmd:

set OLLAMA_HOST= 127.0.0.1:11435

if using powershell:

$Env:OLLAMA_HOST = "127.0.0.1:11435"

Thanks for the issue!

<!-- gh-comment-id:2178916841 --> @jmorganca commented on GitHub (Jun 19, 2024): If using cmd: ``` set OLLAMA_HOST= 127.0.0.1:11435 ``` if using powershell: ``` $Env:OLLAMA_HOST = "127.0.0.1:11435" ``` Thanks for the issue!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#3237