Friday, January 11, 2013

Java program to ping an IP address

Below is the Java program to ping an IP address.

Also note that you can use below syntax to check if remote IP address is is reachable or not.

String ip = "";
InetAddress address = InetAddress.getByName(ip);
boolean chkConnection = address.isReachable(1000);


  1. This comment has been removed by the author.

  2. Nice blog useful for those who are looking for some other program to ping the ip address ...I usually ping the ip address through sites like here they are rendering ping tool using which i can ping both web address and ip address ...