Disable Wifi when no Internet connection

It is best not to ping all over the internet, as this can lead to false positives.
Instead, you can dynamically fetch the IP address of the WAN gateway.
Also send more than one probe to avoid triggering on a minor packet loss.

3 Likes