Question: Write a C# program that checks if connected to network by pinging a specific website (google.com), if the server replies that means it's connected to

Write a C# program that checks if connected to network by pinging a specific website (google.com), if the server replies that means it's connected to the internet and if it says "request timed out" or isn't pinging that means it is not connected to the internet. In the case of not connected to the internet, the program should close an external program, for example "utorrent" and reopen it in 1 min and then check for internet again. In the case of it is connected to internet, it should keep "utorrent" open and keep on doing this forever(while loop maybe).

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!