Javatpoint Logo

find system information(like ram, HDD size) of other computers in lan using java

By: rakesh*** On: Mon Nov 18 02:31:35 EST 2013     Question Reputation3 Answer Reputation0 Quiz Belt Series Points0  3Blank User
I wants to find system information(like ram, HDD size) of other computers in lan using java on the server please guide me
Up3Down

 
Try out the following code:
ip[3] = (byte)i;
InetAddress address = InetAddress.getByAddress(ip);
if (address.isReachable(1000))
{
// machine is turned on and can be pinged
}
else if (!address.getHostAddress().equals(address.getHostName())
{
// machine is known in a DNS lookup
}
else
{
// the host address and host name are equal, meaning the host name could not be resolved
}
Image Created0Down

By: [email protected] On: Tue Nov 19 00:46:52 EST 2013 Question Reputation0 Answer Reputation359 Belt Series Points0 359User Image
Are You Satisfied :4Yes3No