I am trying to ping a list of computers on LAN network (address stored in a list)
while(listIterator.hasNext())
{
// listIterator.next() will give address for each computer
boolean bool = inetAddress.isReachable(timeout);
}
For each iteration, I am only able to ping only one computer and rest giving false (All computers are up and running on LAN). Can anyone suggest a problem in this or an efficient way to do this?