Vista de Lectura

Hay nuevos artículos disponibles. Pincha para refrescar la página.

How to fix an internal IP always changing?

I have a server with a static IP address which hosts almost everything except Ollama because the GPU is on my main machine.

I sometimes have to use a hard physical switch to change between two different outgoing networks due to the country I am living in requiring a VPN to access the western internet.

With that in mind, how can I keep a hostname with which my server can always contact my dynamically changing IP address on the GPU machine? If I can make a hostname available I can do that. Otherwise how do I update OpenWebUI and other containers dynamically with the new address when it changes? I am a software engineer so developing some kind of service on the main server isn't out of the question.

My current thoughts are maybe making a service which I call periodically to update the IP in /etc/hosts for the hostname I use instead of an IP address?

I need to update the endpoint in OpenWebUI and AnythingLLM somehow while they are running otherwise which I am also unsure of how to do as they are docker run arguments.

submitted by /u/FecklessLizard
[link] [comments]
❌