c# - How to check for internet connection? -


i know can check network connectivity, can't seem find way check if there internet available, short of ping. know of few use cases user connected local wlan doesn't have access internet, , prefer avoid timeout on request.

short of pinging, take rather long time complete depending on network connectivity, there way explicitly test internet?

you can try ....

var asd = networkinterface.getinternetinterface(); 

i hope might ...


Comments

Popular posts from this blog

wireshark - USB mapping with python -

c++ - nodejs socket.io closes connection before upgrading to websocket -

Deploying Qt Application on Android is really slow? -