ONJava.com -- Zero Configuration Networking: Using the Java APIs, Part 2: "Zero Configuration Networking: Using the Java APIs, Part 2
by Daniel H. Steinberg, Stuart Cheshire
Browsing for Services
Browsing to discover our advertised service using the dns-sd tool is very easy, and doing so using Java code is barely any harder. To browse, you need to perform two steps similar to those you just used to register your service:
Call DNSSD.browse( ) using one of the two available signatures.
Provide a class that implements the BrowseListener interface."