zeroconf icon indicating copy to clipboard operation
zeroconf copied to clipboard

Any luck with Windows?

Open jmarkel44 opened this issue 4 years ago • 3 comments

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.

jmarkel44 avatar Apr 01 '20 15:04 jmarkel44

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.

grandcat avatar May 28 '20 18:05 grandcat

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.

huanglw1333 avatar Jun 04 '20 02:06 huanglw1333

Yeah, that works for me too. Thanks for the feedback!

jmarkel44 avatar Jun 04 '20 17:06 jmarkel44