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

ruby on rails - Permission denied @ sys_fail2 - (D:/RoR/projects/grp/public/uploads/ -

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

java - What is the equivalent of @Value in CDI world? -