-
Notifications
You must be signed in to change notification settings - Fork 86
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UDP Broadcast not working in docker bridge network #637
Comments
I've been having a similar problem. I've been looking everywhere for a solution why UDP packets get dropped |
It is a linux issue. to disable it to control the output after that you can try to ping the broadcast address. |
From inside the container or on the host? |
inside of the container |
I have a similar issue with Docker 19.03.5 when trying to send a WoL magic packet from inside the container. The Obviously, it works with |
This issue persists on Docker version 19.03.12, build 48a66213fe It is not an issue with the Linux host - it can broadcast just fine. We don't care about ICMP broadcasts, it's UDP. |
I have the same problem, it would be useful to find a solution. That's become weirder as it is outgoing traffic, which is usually permitted, every other IP address works... The solution to switch to a host network isn't really a solution, because you loose a security layer :/ |
I'm experiencing exactly the same issue. I have a NodeJS IoT app that can successfully perform UDP broadcasting on the host (a Raspberry-Pi v4), and in containers running in WSL, but do not seem to make it out of the container when running on the Raspberry-Pi v4. Running Docker Version 20.10.6 |
Any news, the problem is still present in the latest Docker version. |
Isnt the docker bridge network a different broadcast domain? Am i misunderstanding something here or are you expecting the udp broadcast to cross a broadcast domain boundary? Thats not happening because broadcasts have an extent of a broadcast domain by design |
Expected behavior
UDP Broadcast request from docker container should reach external systems in same network.
Actual behavior
Broadcast from docker not forwarded to outside world in docker bridge network. It works fine in host network.
Steps to reproduce the behavior
Create a udp socker broadcast docker server/client
Docker network created using :
Docker run using host network (status : working)
Docker run using created Bridge network (status : not working)
Output of Docker network inspect:
Output of
docker version
:Output of
docker info
:Additional environment details (AWS, VirtualBox, physical, etc.)
The text was updated successfully, but these errors were encountered: