Detect Internet Connection in C# November 9, 2016 There are numerous ways to find out whether or not there is an internet connection present. One of the quickest ways is to use the InternetGetConnectedState API. Here is how