Skip to content

[Question]: Receiving a connection error while connecting to Ollama on my host machine #2969

Discussion options

You must be logged in to vote

It turns out the issue was that Ollama by default only responds to the 127.0.0.1 interface. Since my host service is run with systemd, I was able to add this to the ollama.service file to resolve the issue:

Environment="OLLAMA_HOST=0.0.0.0:11434"

Replies: 6 comments 8 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
4 replies
@danny-avila
Comment options

@ic-mw
Comment options

@danny-avila
Comment options

@ic-mw
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
4 replies
@danny-avila
Comment options

@ic-mw
Comment options

@scoooducks
Comment options

@joelclimbsthings
Comment options

Answer selected by danny-avila
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
5 participants
Converted from issue

This discussion was converted from issue #2961 on June 05, 2024 18:45.