The icmp4j library exposes ping functionality (ICMP ECHO) to Java Apps.

DOWNLOAD

REPORT A BUG

REQUEST A FEATURE

SAMPLE USAGE

package org.icmp4j.tool;


import org.icmp4j.IcmpPingUtil;

import org.icmp4j.IcmpPingRequest;

import org.icmp4j.IcmpPingResponse;


// Sample class, copyright 2009 and beyond, icmp4j

public class Sample {


// the java entry point

public static void main (final String[ ] args)

throws Exception {


// request

final IcmpPingRequest request = IcmpPingUtil.createIcmpPingRequest ();

request.setHost ("www.google.org");


// repeat a few times

for (int count = 1; count <= 4; count ++) {


// delegate

final IcmpPingResponse response = IcmpPingUtil.executePingRequest (request);


// log

final String formattedResponse = IcmpPingUtil.formatResponse (response);

System.out.println (formattedResponse);


// rest

Thread.sleep (1000);

}

}

}

SEE IT IN ACTION

www.everyping.com

A LOT OF TIME HAS GONE INTO THE
DEVELOPMENT OF ICMP4J:

  1. Research, prototype, and implementation of the ICMP ECHO workflow using raw sockets and other native APIs
  2. Development of JNI/JNA bridges
  3. Test on every platform including Windows, Linux, Solaris, 32 bit/64 bit, Intel/AMD
  4. BTW, Windows alone means XP, XPE, ME, Vista, 7, 8, 2000, 2003, 2008, 2012; 32-bit and 64-bit; client and server operating systems
  5. Beta test with customers and other time-donors

FEATURES

USED BY

  1. Students
  2. Universities
  3. Startups
  4. Established companies
  5. Fortune 100 companies

USED IN

  1. Monitoring software
  2. Self-healing software
  3. Desktops
  4. Servers
  5. Embedded devices
  6. Applets

ICMP4J IS USED ALL OVER THE WORLD

Top countries: China, United States, Germany, Spain, Russia, Belgium, India, France, Korea, Brazil, Japan, Vietnam, Australia, Italy, Ireland, Indonesia, Hungary, Switzerland, Colombia, Taiwan, Netherlands, Poland, Finland, United Kingdom, Israel United States, China, India, Spain, Germany, UK, France, Russia... check-out sf.net for the shortpasta-icmp and icmpj4 stats.