I'm checking for online connectivity using **Application.internetReachability** against both LAN and Data Networks. Unfortunately I've found that if the client is connected to a network, but that network is not connected to the internet, the program still assumes the client is connected.
I've tried countering this by running a ping test, but the **ping periodically returns false positives**, saying the ping was successful after x time even when the computer or device is entirely disconnected.
Exploring further, while **disconnected** from the internet I pinged an ip from command prompt, which produced the following results:
Request timed out.
Reply from 192.168.0.123: Destination host unreachable.
Reply from 192.168.0.123: Destination host unreachable.
Reply from 192.168.0.123: Destination host unreachable.
The Unity Ping class seemingly cannot differentiate between an "unreachable" reply, and a positive reply. **Is there an alternative means of checking for connectivity?**
Cheers.
↧