Skip to content
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

Any luck with Windows? #69

Open
jmarkel44 opened this issue Apr 1, 2020 · 3 comments
Open

Any luck with Windows? #69

jmarkel44 opened this issue Apr 1, 2020 · 3 comments

Comments

@jmarkel44
Copy link

jmarkel44 commented Apr 1, 2020

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.
@grandcat
Copy link
Owner

grandcat commented May 28, 2020

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.

@huanglw1333
Copy link

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.

@jmarkel44
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants