April 3, 20251 yr Does unraid OS automatically store the LAN IP anywhere? I'd like to automatically add the LAN_IP in the environmental variables on startup, and was wondering what the best way to achieve that is. I saw what teh command `env` provides, but no LAN IP there.
April 4, 20251 yr Community Expert 21 hours ago, stevenxl said: Does unraid OS automatically store the LAN IP anywhere? Are you talking about the IP of the server? If so you can set it to a static value under Settings->Network. Having said that it is often better to leave Unraid set to use DHCP and then set a static address for the server on your router.
April 7, 20251 yr Author On 4/4/2025 at 7:55 AM, itimpi said: Are you talking about the IP of the server? If so you can set it to a static value under Settings->Network. Having said that it is often better to leave Unraid set to use DHCP and then set a static address for the server on your router. That is the IP that I am speaking of. However, what i want to do is the following in NGINX env LAN_IP; set $upstream_app $LAN_IP; So if unraid knows its own LAN IP, I can set that as part of the environmental variables on startup.
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.