?
Solved

Applet and trace route

Posted on 2002-04-05
5
Medium Priority
?
249 Views
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.
0
Comment
Question by:llewelm
[X]
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
5 Comments
 
LVL 18

Expert Comment

by:bobbit31
ID: 6921042
have you tried InetAddress.getLocalHost().getHostAddress()?
0
 
LVL 1

Author Comment

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

Accepted Solution

by:
bobbit31 earned 800 total points
ID: 6921756
0
 
LVL 18

Expert Comment

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

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

Author Comment

by:llewelm
ID: 6925100
This was exactly what I needed.  Thanks.
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

An old method to applying the Singleton pattern in your Java code is to check if a static instance, defined in the same class that needs to be instantiated once and only once, is null and then create a new instance; otherwise, the pre-existing insta…
This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
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…
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
Suggested Courses
Course of the Month10 days, 23 hours left to enroll

770 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