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

Service replies doesn't work correctly (in Windows?) #54

Open
PatrLind opened this issue Apr 16, 2019 · 2 comments
Open

Service replies doesn't work correctly (in Windows?) #54

PatrLind opened this issue Apr 16, 2019 · 2 comments

Comments

@PatrLind
Copy link

When I register a service and zeroconf is about to reply to queries it will try to send a response to all available network interfaces, however this doesn't seem to work correctly on Windows.
The message is sent multiple times to the loopback interface and not to any of the external interfaces.
I can therefore discover my service correctly on the local machine (using the dns-sd command line tool), but other machines cannot see the service.
If i look in Wireshark I can see that the incoming query is on my network interface but the replies are only ever sent to the loopback interface.

Is this a known problem? Any work-arounds or solutions?

@tmm1
Copy link
Contributor

tmm1 commented Apr 16, 2019

You can build go/net with these patches: https://go-review.googlesource.com/c/net/+/76950/2

@PatrLind
Copy link
Author

I will try the patches shortly, in the meantime I experimented a bit by setting the multicast interface in the joinUdp4Multicast() function in connection.go.
It seemed to do the trick in this specific case.
Example (added just before the return pkConn, nil:

pkConn.SetMulticastInterface(&interfaces[0])

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

2 participants