Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Discover Zeroconf/Bonjour Nodes?

Is there an easy way to scan a given network for Bonjour/Zeroconf services?

I have a set of computers (Linux, Windows, Apple) and would like to auto-generate a list of all available Zeroconf-capable, networked nodes in my Intranet.

like image 874
Nate Avatar asked Feb 26 '09 17:02

Nate


4 Answers

If using Linux and the Avahi-Daemon, it looks like Avahi-Discover is worth an investigation.

You'll obviously have to download/install/launch it though. On Ubuntu/Debian, you can use the following:

% sudo apt-get install avahi-discover

And launch GUI with:

% avahi-discover
like image 78
Nate Avatar answered Sep 22 '22 05:09

Nate


I haven't used it, but you might want to take a look at the Mono Project's Zeroconf library.

It looks like they have a query tool mzclient that may help you.

If nothing else, you should be able to build something in C# using that library.

like image 23
5 revs, 3 users 96% Avatar answered Sep 22 '22 05:09

5 revs, 3 users 96%


By far the most reliable method (I've tried all these, building a MDNS capable embedded product) is to use the opensource 'Bonjour'. This is the mDNSResponder daemon, and its available here:
http://opensource.apple.com/source/mDNSResponder/mDNSResponder-320.10/

mDNSResponder package has a Java JNI library and examples which let you poll all the available services.

like image 26
EdH Avatar answered Sep 22 '22 05:09

EdH


@EdH, thanks for your post. I up voted it. I haven't tried Mono.Zeroconf yet, but I am positive that it will work since Bonjour/Zeroconf has changed very little in the last couple years. I am only looking for basic functionalities like service publish and discovery. The mzclient seems a nice location to start with. I dug out the git location for the source: mzclient on github . Hope this helps others looking for a similar solution :-)

like image 30
DragoRaptor Avatar answered Sep 19 '22 05:09

DragoRaptor