But maybe we can assign another network interface with a fixed IP address. If possible without requiring admin access every time we start it, but that could possibly delegated to a privileged helper.
This story is about doing the research, not about implementing anything just yet (unless it turns out to be unexpectedly trivial).
there is a new network mode in newer versions of WSL2 which can be used to bind to the IP of the host system. Would be really nice if Rancher Desktop would support this.
From https://github.com/microsoft/WSL/issues/4210 it looks like this is still not possible.
But maybe we can assign another network interface with a fixed IP address. If possible without requiring admin access every time we start it, but that could possibly delegated to a privileged helper.
This story is about doing the research, not about implementing anything just yet (unless it turns out to be unexpectedly trivial).