Add option FOUNDRY_HOST in order to allow exposing port 5272 to the network #183
Replies: 7 comments 1 reply
-
|
Does |
Beta Was this translation helpful? Give feedback.
-
|
I ran into the same problem - also trying to access the model from WSL. Explicitly setting host as 0.0.0.0 seems promising however then the model loading fails: |
Beta Was this translation helpful? Give feedback.
-
|
Yes I got the 503... |
Beta Was this translation helpful? Give feedback.
-
|
The host setting of the service in 0.2.9261 is limited to 127.0.0.1, etc... |
Beta Was this translation helpful? Give feedback.
-
|
It is working for me to connect to the service from wls2, with the default configuration |
Beta Was this translation helpful? Give feedback.
-
|
Hi team, any update on this issue? This functionality is really important for us to expose the foundry local capabilities to the computers within private network. And this command doesn't work for me. |
Beta Was this translation helpful? Give feedback.
-
|
This should still be an active issue, not a discussion. At present it is not possible to use Foundry Local within WSL, without an intermediary service. Coupled with the fact NPU drivers are not available in WSL we remain stuck in an environment that is lacking much of the AI ecosystem. |
Beta Was this translation helpful? Give feedback.


Uh oh!
There was an error while loading. Please reload this page.
-
Foundry currently binds to port 5272 only to 127.0.0.1
This makes it challenging to connect to the REST API from WSL2 and from local devcontainers docker as the port is not exposed to them.
For example the following curl call from WSL2 gets blocked
When using Ollama, I and many others typically develop in docker devcontainers and connect to Ollama running on windows.
Ollama provides option OLLAMA_HOST. When this is set to 0.0.0.0 through
set OLLAMA_HOST="0.0.0.0"it exposes the port to the network. Firewalls on the machine will prevent it to be exposed furtherSuggestion is to add FOUNDRY_HOST which does the same or add some otherway of configuring the ip-address foundry is bound to.
Beta Was this translation helpful? Give feedback.
All reactions