I've got Nextcloud set up in a Hyper-V machine, and IIS running a reverse proxy into the Hyper-V machine. Right now, it's set up so that the reverse proxy rewrites the url using the IP address, but the issue is that the (internal) IP address of the Hyper-V machine keeps changing every time it reboots.
I've tried setting up a static ip within the Hyper-V machine but then the Hyper-V machine loses connectivity if I do, and I've tried rewriting the IP address using the hostname, but there's no DNS server so Windows can't resolve the hostname.
Is there any solution where I can set up the reverse proxy such that I don't need to keep editing the IP address of the rewrite every time I reboot?