I need a 100% accurate way to detect if there is an active connection to the internet. The only way there seems to be so far is pinging a site but this can take a long time. Other methods only check for via modem or via LAN etc.

Is there a way of checking connection no matter how you are connected (via modem, Lan etc.) ???

Thanks a lot