mafintosh / multicast-dns

Low level multicast-dns implementation in pure javascript
MIT License
512 stars 91 forks source link

mDNS scan #23

Closed fender357 closed 8 years ago

fender357 commented 8 years ago

Hello, I have been trying to wrap my head around this since it seems like it should be something very simple. I am basically trying to find a way to scan the network and find any mDNS client available. No matter what the name is of the client. What I believe DNS-SD would do in a way as well. I cannot find something that provides any name format that would work as a wild card.

My goal would be to have something similar to the Bonjour browser program that can scan a network and find the client devices along with their IP

I feel like multicast-dns is very close to what I would need, I just don't know how to make it work like this.

Thank you

mafintosh commented 8 years ago

/cc @watson - he has something for this

fender357 commented 8 years ago

Thankks @mafintosh ! Hi there @watson , very interested in what you've got for this.

watson commented 8 years ago

@fender357 It's been a long time coming but I just released the bonjour node module which builds upon this module to provide a more high level interface for service discovery (and publishing).

As far as I know there are no way to scan for all bonjour/zeroconf clients without knowing the service-type they are advertising. I'd be happy to add this feature to bonjour if it was possible, but I don't think it is.

Please try out my new module if it can help you and don't hesitate to get back to me if you have any questions :smiley:

fender357 commented 8 years ago

@watson Oh that's awesome :smiley: :+1:

My understanding of mDNS has been slowly growing, and it has mostly been colored by my larger knowledge of multicast and IGMP. I keep expecting something like an IGMP Query message to be part of all this which will cause every possible participant to immediately come back with something.

Be I will definitely try your new module. I looked over it quickly and it looks really good!

I think I'll close this since there isn't technically any issue.