Write a C# program that checks if connected to network by pinging a specific web
ID: 3913881 • Letter: W
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 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).
Explanation / Answer
With the help of given above code, you can check whether you are connected to internet or not.
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.