mdns-js / node-mdns-js

Pure JavaScript/NodeJS mDNS discovery implementation.
Apache License 2.0
161 stars 60 forks source link

Must communicate over port 5353 #45

Open kmpm opened 9 years ago

kmpm commented 9 years ago

This issue will be used to collect all the other related issues under one umbrella. These are likely all to be related to the same issue, and more will probably be added.

All of these are probably related to the fact that this library was not following standards. RFC6762 section 5.2 states that

A compliant Multicast DNS querier, which implements the rules specified in this document, MUST send its Multicast DNS queries from UDP source port 5353 (the well-known port assigned to mDNS), and MUST listen for Multicast DNS replies sent to UDP destination port 5353 at the mDNS link-local multicast address (224.0.0.251 and/or its IPv6 equivalent FF02::FB)

I would LOVE feedback on what issues and steps needed to make sure that this library can listen to that port regardless of OS and/or other mdns service running like bonjour, avahi etc.

Read more and help out with documentation on what ports to use and what the standard says you can have a look at doc/notes.md or just post a comment.

kmpm commented 7 years ago

Issue 1690 in nodejs talks about some things you have to do if you want to listen to a specific interface but still use multicast. https://github.com/nodejs/node/issues/

kmpm commented 7 years ago

Will try to combine this with #67

SlickWish commented 7 years ago

What happened to this? Will there be ipv6 soon?