[GH-ISSUE #439] [Docs] Update documentation for host.docker.internal resolutions on Docker Readme.md #252

Closed
opened 2026-02-22 18:18:34 -05:00 by yindo · 3 comments
Owner

Originally created by @timothycarambat on GitHub (Dec 13, 2023).
Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/439

Often users of AnythingLLM will encounter a "bug" where AnythingLLM does not resolve a localhost instance URL of a vector database or Local LLM/Embedder inference.

This is due to Docker container localhost not resolving on the host system network and therefore a localhost URL will not work.

Let's update the documentation on the Docker page with a !TIP or !Important explaining you will need to use host.docker.internal for reaching localhost on the host machine from a docker container.

Originally created by @timothycarambat on GitHub (Dec 13, 2023). Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/439 Often users of AnythingLLM will encounter a "bug" where AnythingLLM does not resolve a localhost instance URL of a vector database or Local LLM/Embedder inference. This is due to Docker container `localhost` not resolving on the host system network and therefore a localhost URL will not work. Let's update the documentation on the Docker page with a !TIP or !Important explaining you will need to use host.docker.internal for reaching localhost on the host machine from a docker container.
yindo added the documentation label 2026-02-22 18:18:34 -05:00
yindo closed this issue 2026-02-22 18:18:34 -05:00
Author
Owner

@Amejonah1200 commented on GitHub (Dec 13, 2023):

It would be also good to see some information on how LMStudio might be reachable.

@Amejonah1200 commented on GitHub (Dec 13, 2023): It would be also good to see some information on how LMStudio might be reachable.
Author
Owner

@timothycarambat commented on GitHub (Dec 13, 2023):

It would be also good to see some information on how LMStudio might be reachable.

Reviewing the thread in LMStudio discord would it work to use ngrok to forward the request to a public facing IP? I know that is not sustainable (or safe) solution but that is what I do to connect to my GPU computer on LAN instead of getting its LAN IP each time for LocalAI - wonder if the same could be done in WSL environments?

ngrok http 1234 on the host machine and use that URL in AnythingLLM?

@timothycarambat commented on GitHub (Dec 13, 2023): > It would be also good to see some information on how LMStudio might be reachable. Reviewing the thread in LMStudio discord would it work to use `ngrok` to forward the request to a public facing IP? I know that is not sustainable (or safe) solution but that is what I do to connect to my GPU computer on LAN instead of getting its LAN IP each time for LocalAI - wonder if the same could be done in WSL environments? `ngrok http 1234` on the host machine and use that URL in AnythingLLM?
Author
Owner

@Amejonah1200 commented on GitHub (Dec 13, 2023):

@timothycarambat the idea is cursed. I love it.

@Amejonah1200 commented on GitHub (Dec 13, 2023): @timothycarambat the idea is cursed. I love it.
yindo changed title from [Docs] Update documentation for host.docker.internal resolutions on Docker Readme.md to [GH-ISSUE #439] [Docs] Update documentation for host.docker.internal resolutions on Docker Readme.md 2026-06-05 14:34:17 -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#252