Skip to Main Content

Java APIs

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to get traceroute data between two remote machines?

843790Jun 27 2007 — edited Jun 28 2007
Hi there

I am using JDK 1.4 and thus I wrote my code for tracerout like this

Cmd = "tracert host X";

Runtime r = Runtime.getRuntime();
Process p = r.exec(Cmd);

This works perfectly and gives me results between host X and my machine.

Now I would like to run my code from my PC but it should give me the result of traceroute between machine X and Y. How do I do that? Do I need to overcome any authentication problem for the remote hosts?

take care
Mohammed Jubaer Arif.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 26 2007
Added on Jun 27 2007
3 comments
307 views