Wrong Status returned by Java's IsReachable method
802203Sep 5 2008 — edited Sep 18 2008Dear Friends,
I am using J2SE 5.0 in my application. In my application I am monitoring the devices in a network. ie, I want to know whether the devices in my network is UP or DOWN.
I am using the 'isReachable' method to check the device status. But this method is returning false for a device a device which is actually PINGing/Alive. Please tell me why 'isReachable' is mis-behaving.
Due to this my application fails to show the exact device status.
As an alternative to this, can I use the native ping using Runtime and Process . But in this case, I think that more resources will be used in terms of heap memory.
In my network there will be more than 4000 devices will be there. I have to check the status in each 10 minutes. So please tell me whethet I can use the Native Ping .
Three will be routers between my machine, from which the PING command is issued, and the other devices.