-
Notifications
You must be signed in to change notification settings - Fork 859
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
WSL 2.0 UDP broadcast not received #10523
Comments
@keith-horton: Can you look into this issue ? |
"wireshark can not see the UDP broadcast packets neither" If Wireshark cannot see the UDP broadcast packets, then they are not getting past NDIS - so they wouldn't be available to forward to the container. I would look at the switch or router to see if it's allowing broadcasts to be sent. |
I run |
@huiminghao you'll have to add a firewall rule for packets to reach the WSL container. After oppening port 9999 with
I have |
Thanks. I tried and it works well now. Multicast UDP packets ara received without rule set, different from broadcast UDPs.
Seems |
Yes, this is correct. Adding a HyperV Firewall rule is required. |
Windows Version
1000.22674.1000.0
WSL Version
2.0.0.0
Are you using WSL 1 or WSL 2?
Kernel Version
5.15.123.1-microsoft-standard-WSL2
Distro Version
Debian11.7
Other Software
[experimental]
autoMemoryReclaim=gradual
networkingMode=mirrored
dnsTunneling=true
autoProxy=true
Repro Steps
My linux app can not receive UDP broadcast packets from eth0. Unicast packets are ok.
App with Golang.
Use
GOOS=windows
and run fromcmd
works well.Expected Behavior
Linux should recv broadcast UDP packets.
Actual Behavior
No broadcast UDP packets received.
Diagnostic Logs
wireshark can not see the UDP broadcast packets from wsl's eth0 neither.
The text was updated successfully, but these errors were encountered: