Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Implementing ping using ICMP and Java

Status
Not open for further replies.

Efa

Programmer
Jul 9, 2001
18
0
0
AU
I need some help really badly on this.I'm doing a final year project in java on a network monitoring system.I got a java applet echoing port 7 but this doesn't work on NT. so i probably have to use ICMP.How do i do this? I don't even know where to start
 
Hi,

To use ICMP you must have access to low-level network data (e.g. raw sockets in C). In java, Sockets are assumed be either TCP or UDP sockets and you don't have access to a packet level data. You could use implement ping with C and add it to your java application using JNI. Or you could use pure java and perform ping in command line using Runtime.exec()...

-Vepo
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top