[GH-ISSUE #8759] Aren't accesible from local network #52196

Closed
opened 2026-04-28 22:28:20 -05:00 by GiteaMirror · 4 comments
Owner

Originally created by @Freemorger on GitHub (Feb 1, 2025).
Original GitHub issue: https://github.com/ollama/ollama/issues/8759

What is the issue?

I can not access Ollama from local network - other pc or my phone using curl.
I tried things.
OLLAMA_HOST="0.0.0.0 or my local 192.x.x.x ip", both are making ollama use the specifies ips:

sudo ss -tulpn | grep ollama
tcp   LISTEN 0      4096                                    *:11434            *:*    users:(("ollama",pid=8484,fd=3))    

But, it won't work.
To be clear, my pc overall accessible from local network. if i just try to ping it from other device by local ip (192....), then it will work. but i still can not access ollama from other devices: could not connect to the server

OS

Linux

GPU

Nvidia

CPU

Intel

Ollama version

0.5.4

Originally created by @Freemorger on GitHub (Feb 1, 2025). Original GitHub issue: https://github.com/ollama/ollama/issues/8759 ### What is the issue? I can not access Ollama from local network - other pc or my phone using curl. I tried things. `OLLAMA_HOST="0.0.0.0 or my local 192.x.x.x ip"`, both are making ollama use the specifies ips: ``` sudo ss -tulpn | grep ollama tcp LISTEN 0 4096 *:11434 *:* users:(("ollama",pid=8484,fd=3)) ``` But, it won't work. To be clear, my pc overall accessible from local network. if i just try to ping it from other device by local ip (192....), then it will work. but i still can not access ollama from other devices: could not connect to the server ### OS Linux ### GPU Nvidia ### CPU Intel ### Ollama version 0.5.4
GiteaMirror added the bug label 2026-04-28 22:28:20 -05:00
Author
Owner

@rick-github commented on GitHub (Feb 1, 2025):

Firewall? What version of linux?

<!-- gh-comment-id:2628961519 --> @rick-github commented on GitHub (Feb 1, 2025): Firewall? What version of linux?
Author
Owner

@Freemorger commented on GitHub (Feb 1, 2025):

Firewall? What version of linux?

iptables, firewalld
linux 6.12.8-arch1-1

<!-- gh-comment-id:2628975996 --> @Freemorger commented on GitHub (Feb 1, 2025): > Firewall? What version of linux? iptables, firewalld linux 6.12.8-arch1-1
Author
Owner

@ajm896 commented on GitHub (Feb 1, 2025):

It sounds like firewalld is blocking port 11434, if you followed a firewalld tutorial to set it up, it usually ends by closing all ports. Can you confirm with firewalld port 11434 is open?

<!-- gh-comment-id:2628991382 --> @ajm896 commented on GitHub (Feb 1, 2025): It sounds like firewalld is blocking port 11434, if you followed a firewalld tutorial to set it up, it usually ends by closing all ports. Can you confirm with firewalld port 11434 is open?
Author
Owner

@Freemorger commented on GitHub (Feb 1, 2025):

It sounds like firewalld is blocking port 11434, if you followed a firewalld tutorial to set it up, it usually ends by closing all ports. Can you confirm with firewalld port 11434 is open?

Oh, that was the probem. Firewalld blocked me every port by default. I opened 11434 and everything now works. Closing

<!-- gh-comment-id:2628993879 --> @Freemorger commented on GitHub (Feb 1, 2025): > It sounds like firewalld is blocking port 11434, if you followed a firewalld tutorial to set it up, it usually ends by closing all ports. Can you confirm with firewalld port 11434 is open? Oh, that was the probem. Firewalld blocked me every port by default. I opened 11434 and everything now works. Closing
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#52196