Wednesday, May 29, 2013

Ping computer

U can also use this one... 1 seems not set well in this contex

int[] bping = { "192.168.1.1", "192.168.1.2" };

for (int i = 0; i<bping.Length; i++)
{
Ping ping = new Ping();
PingReply pingReply = ping.Send(bping[i].ToString());

Console.WriteLine("Status: {0}", pingReply.Status + " " + pingReply.Address);

Console.ReadLine();
}



t ..


Thanks! Sundar Please use Marked as Answer if my post solved your problem and use Vote As Helpful if a post was useful."


No comments:

Post a Comment