I'm building an iOS app that uses Bonjour for device discovery on the same WiFi network. It works fine on some networks, but not on others (like Starbucks or Panera). The devices see themselves, but not each other.
I got a tip that these networks may be using Split Horizon DNS. I've confirmed that I cannot ping one device from another.
The problem is, I want to show an error message if the WiFi network won't work.
I thought maybe I wouldn't be able to ping myself on such a network, but I can.
What is the best strategy for detecting Split Horizon from a single device? In other words, I cannot ping another device at runtime since I don't know anything about other devices.