I have an app that publishes a service over TCP and uses an NSNetServiceBrowser to browse for the service on th elocal domain.
I have the app running on 3 devices: an iPhone 6 Plus, an iPad Retina, and an iPhone 5S simulator.
Here's the odd part:
When I publish the service like this; [server publishWithOptions:NSNetServiceListenForConnections] ;
each of the three instances of the app can find the other two.
However, when I publish the service like this: [server publish] ;
the instance on the simulator can see the other two instances, but the instances running on the iPhone and iPad can see one another, but neither can see the instance running on the simulator.
Can anyone explain that?
Thanks