I found code that you can use in a servlet. Something like this:
try {
String ip = "127.0.0.1";
Process p = Runtime.getRuntime().exec("ping -n 1 " + ip);
int status = p.waitFor();
System.out.println(ip + " is " + (status == 0 ? "alive" : "dead"));
}//end try
catch (Throwable t) {
t.getMessage();
}
Thanks anyway! -Hope this helps someone else...
-Ashton