How do I 'Ping' from Java?
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Ed_Wallace
Posted On:   Thursday, May 8, 2003 03:36 AM

Hi,

does anyone know if there is a way of performing a ping operation from a java module?

MY prject involves a number of servers and the first thing I want to do is test if they are there, or at least if something responds on the given IP address.



thanks in advance,


Ed.

Re: How do I 'Ping' from Java?

Posted By:   Anonymous  
Posted On:   Thursday, May 8, 2003 04:36 AM

AFAIK, you cant use raw sockets from Java, so you cant do a ping.


But you can always use a native method (I've tried it succesfully) with the portability drawbacks it suppose.


Regards,
Guido.

About | Sitemap | Contact