react-native-zeroconf icon indicating copy to clipboard operation
react-native-zeroconf copied to clipboard

Find zeroconf services on network

Open elmcapp opened this issue 4 years ago • 1 comments

Can you provide an example how to find a bonjour service on the network. Using the code I am looking for example that would print the port number and ip or hostname of any service on the network named @"_some_service_of_type._tcp"

So far the documentation I have tried on the home page is not working

elmcapp avatar Oct 12 '20 21:10 elmcapp

most likely you would need a device or service that is broadcasting MDNS. The device/service would have a name set. thats the name you want to add to your config and info.plist

Screen Shot 2020-10-23 at 11 48 58 PM

example, my device is broadcasting mDNS with the name of _localctl so my plist would be

	<array>
		<string>_localctl._tcp.</string>
	</array>

jimji1005 avatar Oct 24 '20 06:10 jimji1005