What is the fastest and most efficient way to check for Internet connectivity in .NET?
public static bool HasConnection() { try { System.Net.IPHostEntry i = System.Net.Dns.GetHostEntry("www.google.com"); return true; } catch { return false; } }
That works