Discovering all Bonjour services

To discover all Bonjour services, do the following:

NSNetServiceBrowser
searchForServicesOfType: @"_services._dns-sd._udp."
inDomain: @""

It will return data in the following form:

NSNetService
name = "_workstation"
type = "_tcp.local."
domain = "."

All this documentation taken from here.

Leave a Comment