[GH-ISSUE #10010] Error: could not connect to ollama app, is it running? #53074

Closed
opened 2026-04-29 01:51:04 -05:00 by GiteaMirror · 2 comments
Owner

Originally created by @hao45e on GitHub (Mar 27, 2025).
Original GitHub issue: https://github.com/ollama/ollama/issues/10010

I have modified the port of the ollama service, and there is no problem.
However, if I directly execute 'ollama run' locally, this problem will occur.
How to specify the port when executing 'ollama run' locally

Originally created by @hao45e on GitHub (Mar 27, 2025). Original GitHub issue: https://github.com/ollama/ollama/issues/10010 I have modified the port of the ollama service, and there is no problem. However, if I directly execute 'ollama run' locally, this problem will occur. How to specify the port when executing 'ollama run' locally
Author
Owner

@rick-github commented on GitHub (Mar 27, 2025):

Set OLLAMA_HOST in the client environment.

<!-- gh-comment-id:2756957407 --> @rick-github commented on GitHub (Mar 27, 2025): Set `OLLAMA_HOST` in the client environment.
Author
Owner

@hao45e commented on GitHub (Mar 27, 2025):

Set OLLAMA_HOST in the client environment.

Okay, thank you

<!-- gh-comment-id:2756967150 --> @hao45e commented on GitHub (Mar 27, 2025): > Set `OLLAMA_HOST` in the client environment. Okay, thank you
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#53074