Listening to UDP broadcast from inside Docker container

Viewed 16

I have a server running into a docker container that listens to UDP broadcast messages (SSDP broadcasts) on port 1900, with the port published as 1900 on the host as well.

docker run --rm -td -p 8081:8081 -p 1900:1900/udp  <image-name>

If I login to a shell on the container and run a SSDP discover, the server responds ok.

If I run an SSDP discover from the host - no response.

If I run an SSDP discover from another host on the same network, also no response

What am I missing and what can I do that works cross platform to make the server see UDP broadcasts on the host network? I tried adding

--network host

to no avail..

0 Answers
Related