Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

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.

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote