File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Sockets and Internet Protocols and the fly likes PING program Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Bookmark "PING program" Watch "PING program" New topic

PING program


Joined: Mar 07, 2003
Posts: 5
Hi ,
Please guide me how to write a program similar to PING...
I want to write a java program similar to PING .
That code should work in LINUX & Windows os.

David Weitzman
Ranch Hand

Joined: Jul 27, 2001
Posts: 1365
Ping uses the ICMP protocol which Java does not support. There is a feature request in the Java bug database that is among the top 25 most voted for RFE's. There is at least one workaround suggested there (using UDP to the echo port) but I haven't read very far.

Joined: Mar 07, 2003
Posts: 5
Thanx David Weitzman
I agree. Here's the link:
subject: PING program
It's not a secret anymore!