Wednesday, May 29, 2013

Ping computer

for (int i = 0; 1<bping.Length; i++), in the second phrase u are saying value less than 1.. so try this..



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

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

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

Console.ReadLine();
}



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