Applet and trace route

Posted on 2002-04-05
Last Modified: 2010-03-31
I have a Java applet running in a Web page.  If possible, I need to determine from within the applet the trace route that the user took to reach the Web site.

Further, it would be acceptable if I could just get the IP address of the client machine on which the applet is running.

I understand that applet security is likley to prevent this but any help would be appreciated.
Question by:llewelm
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
LVL 18

Expert Comment

ID: 6921042
have you tried InetAddress.getLocalHost().getHostAddress()?

Author Comment

ID: 6921063
Yes.  This returns "", the "localhost" address.  I need the actual IP address.
LVL 18

Accepted Solution

bobbit31 earned 200 total points
ID: 6921756
LVL 18

Expert Comment

ID: 6921768
also, can you use serverside scripting (cgi/servlets)?

if so, then you can have your applet get the traceroute from there.

Author Comment

ID: 6925100
This was exactly what I needed.  Thanks.

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
maven disable workspace resolution 1 43
Bot application - advice 3 64
Java 8 to Java 6 8 33
American Express @Work site and Java 4 69
Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question