[GH-ISSUE #2512] OLLAMA_HOST not parsed in Windows build #1467

Closed
opened 2026-04-12 11:22:21 -05:00 by GiteaMirror · 2 comments
Owner

Originally created by @mirekjany on GitHub (Feb 15, 2024).
Original GitHub issue: https://github.com/ollama/ollama/issues/2512

Originally assigned to: @dhiltgen on GitHub.

OLLAMA_HOST seems to be incorrectly parsed in Windows build (v0.1.25), for example:

C:\Users\Mirek>ollama -v
ollama version is 0.1.25
C:\Users\Mirek>set OLLAMA_HOST="192.168.0.2:59000"
C:\Users\Mirek>ollama serve
Error: listen tcp: lookup tcp/59000": unknown port

Maybe I am missing something (perhaps different format under Windows?), but this works as expected under WSL/Linux.

Originally created by @mirekjany on GitHub (Feb 15, 2024). Original GitHub issue: https://github.com/ollama/ollama/issues/2512 Originally assigned to: @dhiltgen on GitHub. OLLAMA_HOST seems to be incorrectly parsed in Windows build (v0.1.25), for example: C:\Users\Mirek>ollama -v ollama version is 0.1.25 C:\Users\Mirek>set OLLAMA_HOST="192.168.0.2:59000" C:\Users\Mirek>ollama serve Error: listen tcp: lookup tcp/59000": unknown port Maybe I am missing something (perhaps different format under Windows?), but this works as expected under WSL/Linux.
Author
Owner

@mxyng commented on GitHub (Feb 15, 2024):

It's the quotes. Try without "...", e.g. set OLLAMA_HOST=192.168.0.2:59000

<!-- gh-comment-id:1947153223 --> @mxyng commented on GitHub (Feb 15, 2024): It's the quotes. Try without `"..."`, e.g. `set OLLAMA_HOST=192.168.0.2:59000`
Author
Owner

@CesarCalvoCobo commented on GitHub (Feb 15, 2024):

It seems to work for me too configuring in System Properties - Enviroment Variables - System Variables , but without the quotes indeed

<!-- gh-comment-id:1947173461 --> @CesarCalvoCobo commented on GitHub (Feb 15, 2024): It seems to work for me too configuring in System Properties - Enviroment Variables - System Variables , but without the quotes indeed
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#1467