Sunday, March 23, 2014

How can i make a system in C# which complaint to server for no access of internet....

As Jeffrey pointed out, if the Server is on the other side of the Internet (inlcuding a VPN tunnel) there is just no way to tell it the internet is not working. Because you need the internet to tell it anything.


Furthermore there is no reliable way to figure out if the computer is connected to the internet. The build in function of Windows Vista and later has to be read more like "Is there any reason there should not be a connection to the internet?" There are some approaches to filter out wrong positives, but there is simply no clear defnition of "being connected to the internet".

The only you thing you can ever tell with reliability is wheter you can or cannot connect to a speicfic server. Everything else is just guesswork at best and totally wrong at worst.


It sounds like you want to do Network Monitoring, specifically focussed at server avalibility (from the internet). This is usually best done with existing tools.




Let's talk about MVVM: http://ift.tt/1fpEgna Please mark post as helpfull and answers respectively.



No comments:

Post a Comment