Ping pingSender = new Ping();
PingOptions options = new PingOptions();
options.DontFragment = true;
string data = "test";
byte[] buffer = Encoding.ASCII.GetBytes(data);
int timeout = 120;
PingReply reply = pingSender.Send(strIP, timeout, buffer, options);
return (reply.Status == IPStatus.Success);