Check Internet Connection c#

This example will describe how to check Internet connection in using c sharp language. During code we mostly check if user is connected with remote server or not.

To check user internet connectivity we will send a request to a remote server. If remote server responde us it means that we are connected with Internet otherwise we are not connected with Internet. We can use this code with in thread (Background process) or without thread.

Follow the example code to check if user is connected with Internet or not.

Following code is calling above function to check Internet availability: