-
-
Notifications
You must be signed in to change notification settings - Fork 91
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
Does not work when options.interface is specified #53
Comments
I ran into something similar in a situation where I did need to use It is used not only to override the default interface (automatic selection of default interface does not do great in complex network environments — at least in my case it generally picks the wrong interface) but also to bind. If I do specify an interface I get The change I made was specifically to comment out opts.interface here: socket.bind(port, undefined /* opts.interface */, function () { |
I just ran into this issue and @nriley 's solution resolved it. @mafintosh Would you be open to a PR that adds a new |
I also have a problem that, if I parameter interface with my ip address to select the right interface, I receive multicast udp packets with this address, I must remove "opts.interface" from the bind command to receive all multicast udp packets of all my clients by putting "ip" instead of "opts.interface" it works for the multicast |
If anyone is still wondering about this after one year like me :p It seems that the latest version of the package adds a |
Thanks! |
A complement to this, edit: It does not seem to work on mac |
This is an improvement over the scan, join and leave commands removing flakiness when searching over different networks. In short, instead of leaving bonjour to search across all interfaces, we forcebly conduct a search on each interface, this requires mDNS binding any ipv4 interface (0.0.0.0), otherwise it would bind over the interface itself, which is not desired as it causes services to only be able to receive information over that interface, see [mafintosh/multicast-dns#53](mafintosh/multicast-dns#53). This targeted approach enhances the reliability and accuracy of network searches, reducing instances of missed connections or network errors typically caused by flakiness when relying on bonjour's default behavior. Change-type: patch
This is an improvement over the scan, join and leave commands removing flakiness when searching over different networks. In short, instead of leaving bonjour to search across all interfaces, we forcebly conduct a search on each interface, this requires mDNS binding any ipv4 interface (0.0.0.0), otherwise it would bind over the interface itself, which is not desired as it causes services to only be able to receive information over that interface, see [mafintosh/multicast-dns#53](mafintosh/multicast-dns#53). This targeted approach enhances the reliability and accuracy of network searches, reducing instances of missed connections or network errors typically caused by flakiness when relying on bonjour's default behavior. Change-type: patch
When options.interface is specified:
require("multicast-dns")({interface:"192.168.1.1"})
it didn't work (no error, just no services found) while in the very same system omitting the options worked. The system actually has only one interface 192.168.1.1.
The text was updated successfully, but these errors were encountered: