0
我嘗試ping計算機LAN網絡(存儲在列表中的地址)的列表isReachable給人怪異的結果
while(listIterator.hasNext())
{
// listIterator.next() will give address for each computer
boolean bool = inetAddress.isReachable(timeout);
}
在每次迭代中,我只能夠ping只有一臺電腦和休息提供虛假(所有電腦都在LAN上運行)。 任何人都可以提出這個問題或有效的方式來做到這一點?
請參閱http://stackoverflow.com/questions/4779367/problem-with-isreachable-in-inetaddress-class – michael667