[GH-ISSUE #3089] [BUG]: #1980

Closed
opened 2026-02-22 18:27:32 -05:00 by yindo · 1 comment
Owner

Originally created by @zhanghui-china on GitHub (Feb 2, 2025).
Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/3089

How are you running AnythingLLM?

Docker (local)

What happened?

when i configure Anything LLM, using remote ollama host 192.168.199.207, it seems ok

Images

but when i configure using local ollama host 192.168.199.160 or 127.0.0.1, llm models list can not show:

Image

ollama list

Image

Image

Are there known steps to reproduce?

No response

Originally created by @zhanghui-china on GitHub (Feb 2, 2025). Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/3089 ### How are you running AnythingLLM? Docker (local) ### What happened? when i configure Anything LLM, using remote ollama host 192.168.199.207, it seems ok ![Image](https://github.com/user-attachments/assets/6b0b341e-b822-4919-aaf3-f4741b3f70de)s but when i configure using local ollama host 192.168.199.160 or 127.0.0.1, llm models list can not show: ![Image](https://github.com/user-attachments/assets/c60152a3-1e4a-4eb4-a02e-393d25a5554a) ollama list ![Image](https://github.com/user-attachments/assets/aa147853-f6d0-45ba-bf13-bec5f8c26845) ![Image](https://github.com/user-attachments/assets/aa490d78-081c-41c5-8570-05a00b0a94bd) ### Are there known steps to reproduce? _No response_
yindo added the possible bug label 2026-02-22 18:27:32 -05:00
yindo closed this issue 2026-02-22 18:27:32 -05:00
Author
Owner

@timothycarambat commented on GitHub (Feb 3, 2025):

192.168.199.207 is accessible from outside the container network. As the error message exactly says, you are reaching a loopback address within the container when you are using localhost in Docker.

To reach out of the Docker container to your host ollama, you should use host.docker.internal or on Linux 172.17.0.1 as your localhost.

eg: localhost:11434 => 172.17.0.1:11434

@timothycarambat commented on GitHub (Feb 3, 2025): `192.168.199.207` is accessible from outside the container network. As the error message exactly says, you are reaching a loopback address within the container when you are using localhost in Docker. To reach out of the Docker container to your host ollama, you should use `host.docker.internal` or on Linux `172.17.0.1` as your `localhost`. eg: `localhost:11434` => `172.17.0.1:11434`
yindo changed title from [BUG]: to [GH-ISSUE #3089] [BUG]: 2026-06-05 14:43:48 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Mintplex-Labs/anything-llm#1980