I'm trying to figure out if Docker Desktop on Windows is blocking UDP traffic when I attempt to send it to the loopback address (127.0.0.1). I've been using Wireshark to monitor the traffic and noticed that no UDP packets show up when I send data via Python to port 5005. Is this a known issue with Docker Desktop? Has anyone successfully managed to receive UDP packets in a Docker container on a Windows setup? Currently, I'm considering switching to a pure Python implementation as a workaround, but I'd really appreciate any advice or insights from those who might have encountered this issue before!
1 Answer
It sounds like you might be running into some complexities with your Docker setup. Not seeing any traffic in Wireshark doesn't necessarily indicate that Docker is blocking it. Docker Desktop for Windows operates through several layers that could affect your tests. Maybe try to clarify what your end goal is and describe your current setup! That'll help us understand better and provide more targeted assistance.

Thanks for your reply! To clarify, we want to receive UDP packets from an ESP32-S3 inside a Docker container running on Windows 11 with Docker Desktop + WSL2. The ESP32 sends data via UDP to our laptop's IP address on port 5005, but the Docker container isn't capturing any of the traffic. I've tried several configurations, but nothing seems to work. Curious to see if I'm missing something!