I would like to change the OLLAMA address while the container is running. #1516

Closed
opened 2025-11-11 14:46:44 -06:00 by GiteaMirror · 0 comments
Owner

Originally created by @JayCroghan on GitHub (Jul 13, 2024).

Is your feature request related to a problem? Please describe.
Everytime my machine with Ollama reboots it gets a different IP address. Everything is internal. I would like a way to change the Ollama server address without having to restart the docker container.

Describe the solution you'd like
Some way of setting it, I could write a bash script to do it with an API to run from the Ollama machine if that were possible? Or some other way to set the IP from the other internal machine running Ollama.

Describe alternatives you've considered
So far I just stop, remove and run the container again with different parameters.

Additional context
Maybe there is some solution with some internal DNS I don't know about where I could give my dynamically changing machine a DNS entry that updates?

I cannot use port forwarding on my router because the internal IP always changes of the ollama server. I sometimes switch between a different internet connection for that machine using a hard switch to switch between an Edge router and my normal internet.

Originally created by @JayCroghan on GitHub (Jul 13, 2024). **Is your feature request related to a problem? Please describe.** Everytime my machine with Ollama reboots it gets a different IP address. Everything is internal. I would like a way to change the Ollama server address without having to restart the docker container. **Describe the solution you'd like** Some way of setting it, I could write a bash script to do it with an API to run from the Ollama machine if that were possible? Or some other way to set the IP from the other internal machine running Ollama. **Describe alternatives you've considered** So far I just stop, remove and run the container again with different parameters. **Additional context** Maybe there is some solution with some internal DNS I don't know about where I could give my dynamically changing machine a DNS entry that updates? I cannot use port forwarding on my router because the internal IP always changes of the ollama server. I sometimes switch between a different internet connection for that machine using a hard switch to switch between an Edge router and my normal internet.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#1516