zeroconf
zeroconf copied to clipboard
Any luck with Windows?
Seems like the UDP packet is never sent when running on a Windows platform (works fine with an RPi). Anyone aware of issues regarding Windows?
I'm using Wireshark to try and capture the packets, but there is nothing.
c:\repo\src\github.com\grandcat\zeroconf>go run examples/resolv/client.go
[DEBUG] sending the query
[DEBUG] 224.0.0.251:5353
[DEBUG] 224.0.0.251:5353
[DEBUG] 224.0.0.251:5353
[DEBUG] sending the query
[DEBUG] 224.0.0.251:5353
[DEBUG] 224.0.0.251:5353
[DEBUG] 224.0.0.251:5353
[DEBUG] sending the query
[DEBUG] 224.0.0.251:5353
[DEBUG] 224.0.0.251:5353
[DEBUG] 224.0.0.251:5353
2020/04/01 10:27:48 No more entries.
Personally, I have never tested this library on windows. However, it is run on Travis even on some windows machine which works. So, in general, it should work to some extend.
Edit: do not know whether windows firewall might play a role here.
I met the same issue on Windows 10, it seems Windows socket did not receive multicast packet from server. I replace UDP connection function net.ListenUDP() to net.ListenMulticastUDP() with a specific interface and it works.
Yeah, that works for me too. Thanks for the feedback!