[GH-ISSUE #14305] OLLAMA HOST not work #55822

Closed
opened 2026-04-29 09:46:31 -05:00 by GiteaMirror · 5 comments
Owner

Originally created by @sanio11 on GitHub (Feb 18, 2026).
Original GitHub issue: https://github.com/ollama/ollama/issues/14305

What is the issue?

HI,
At the last version: 0.16.2

on ubuntu:
the service not expose 11434 host on port.
cat ollama.service
[Unit]
Description=Ollama Service
After=network-online.target

[Service]
ExecStart=/usr/local/bin/ollama serve
User=ollama
Group=ollama
Environment="OLLAMA_HOST=0.0.0.0:11434"
Environment="OLLAMA_ORIGINS='*'"
Restart=always
RestartSec=3
Environment="PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin"

[Install]
WantedBy=default.target

how to resolve?

Relevant log output


OS

No response

GPU

No response

CPU

No response

Ollama version

No response

Originally created by @sanio11 on GitHub (Feb 18, 2026). Original GitHub issue: https://github.com/ollama/ollama/issues/14305 ### What is the issue? HI, At the last version: 0.16.2 on ubuntu: the service not expose 11434 host on port. cat ollama.service [Unit] Description=Ollama Service After=network-online.target [Service] ExecStart=/usr/local/bin/ollama serve User=ollama Group=ollama Environment="OLLAMA_HOST=0.0.0.0:11434" Environment="OLLAMA_ORIGINS='*'" Restart=always RestartSec=3 Environment="PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin" [Install] WantedBy=default.target how to resolve? ### Relevant log output ```shell ``` ### OS _No response_ ### GPU _No response_ ### CPU _No response_ ### Ollama version _No response_
GiteaMirror added the bug label 2026-04-29 09:46:31 -05:00
Author
Owner

@rick-github commented on GitHub (Feb 18, 2026):

Works here, I can connect from a different machine. What error are you seeing?

$ ollama -v
ollama version is 0.16.2
$ systemctl cat ollama | grep OLLAMA_HOST
Environment="OLLAMA_HOST=0.0.0.0:11434"
$ sudo lsof -i :11434
COMMAND     PID   USER   FD   TYPE    DEVICE SIZE/OFF NODE NAME
ollama  1034348 ollama    3u  IPv6 137151211      0t0  TCP *:11434 (LISTEN)
<!-- gh-comment-id:3920808449 --> @rick-github commented on GitHub (Feb 18, 2026): Works here, I can connect from a different machine. What error are you seeing? ```console $ ollama -v ollama version is 0.16.2 $ systemctl cat ollama | grep OLLAMA_HOST Environment="OLLAMA_HOST=0.0.0.0:11434" $ sudo lsof -i :11434 COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME ollama 1034348 ollama 3u IPv6 137151211 0t0 TCP *:11434 (LISTEN) ```
Author
Owner

@sanio11 commented on GitHub (Feb 18, 2026):

systemctl cat ollama | grep OLLAMA_HOST
Environment="OLLAMA_HOST=0.0.0.0:11434"
user@pc:~# sudo lsof -i :11434
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
ollama 366529 ollama 3u IPv6 762353 0t0 TCP *:11434 (LISTEN)
ss -lntp | grep 11434
LISTEN 0 2048 *:11434 : users:(("ollama",pid=366529,fd=3))

but not work

<!-- gh-comment-id:3921628677 --> @sanio11 commented on GitHub (Feb 18, 2026): systemctl cat ollama | grep OLLAMA_HOST Environment="OLLAMA_HOST=0.0.0.0:11434" user@pc:~# sudo lsof -i :11434 COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME ollama 366529 ollama 3u IPv6 762353 0t0 TCP *:11434 (LISTEN) ss -lntp | grep 11434 LISTEN 0 2048 *:11434 *:* users:(("ollama",pid=366529,fd=3)) but not work
Author
Owner

@rick-github commented on GitHub (Feb 18, 2026):

What does not work actually mean?

<!-- gh-comment-id:3921682113 --> @rick-github commented on GitHub (Feb 18, 2026): What does `not work` actually mean?
Author
Owner

@sanio11 commented on GitHub (Feb 18, 2026):

resolved. ipv6 ipv4

<!-- gh-comment-id:3921719954 --> @sanio11 commented on GitHub (Feb 18, 2026): resolved. ipv6 ipv4
Author
Owner

@simlay commented on GitHub (Mar 2, 2026):

For the next person, I ended up disabling ipv6only via:

echo 1 | sudo tee /proc/sys/net/ipv6/bindv6only
<!-- gh-comment-id:3987047091 --> @simlay commented on GitHub (Mar 2, 2026): For the next person, I ended up disabling ipv6only via: ``` echo 1 | sudo tee /proc/sys/net/ipv6/bindv6only ```
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#55822