'Docker Networking: Linux Container on Windows Host


I have a Home Assistant Docker container. It works fine so far.

Now I try to get my Video Surveillance into Home Assistant. I have set up the RTSP Stream and so on.

So now to the Problem: Every time I try to open the RTSP Stream from my Docker Container, it needs a random UDP high Port.

I only exposed the 8123 TCP from docker, but I also tried to expose more via port range and UDP, but I have other apps also running on my home Server, and they interfere.

Now the Question: Is there a way to expose the whole Container to the Local Network with its own IP address? I really won’t mess with the port problem inside my local network. I know there is a solution out there with Hyper-V, but I really want to keep WSL 2.0 and not switch to legacy.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source