using System.Net.NetworkInformation; //for PING & Network Info //test to make sure network is up internal static bool NetworkAvailable() { if (System.Net.NetworkInformation.NetworkInterface.GetIsNetworkAvailable() == true) return true; else return false; }