Solved

Applet and trace route

Posted on 2002-04-05
5
217 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
  • 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 200 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 Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
This video teaches viewers about errors in exception handling.
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.

758 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now