IP address capture in IE using java.net package within javascript

How can i capture the user's IP address in IE?  I can do it in Netscape by using the java.net package (java.net.InetAddress.getLocalHost().getHostAddress) within my javascript, however, in
Internet Explorer I get a 'java' undefined error.  I am certain that IE is java compatible, and as far as i now java is enabled in IE, however, i think java syntax differs in IE, but i am not aware of what i must modify to make my code work.
I would really appreciate any help.
allah6Asked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
Michel PlungjanConnect With a Mentor IT ExpertCommented:
You can only capture teh IP address in IE with an applet that does the same as the liveconnect code in Netscape

Alternatively use the server (asp, perl whatever) to do it crossbrowser and crowssplatform

Michel
0
 
Michel PlungjanIT ExpertCommented:
PS: The java you use is not considered java in IE and is using the Netscape only LiveConnect functionality that allows java code inside javascript.
0
 
allah6Author Commented:
Can you tell me more on how I can capture the IP address in IE using an applet that does the same as the Netscape LiveConnect code?
Also, can you recommend any good books explaining this fucntionality?
0
The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

 
Michel PlungjanIT ExpertCommented:
Hmm I may have been too quick about the applet...

IE does support java / javascript communication, but perhaps is the IP address not available...

Have a look at http://arne.solheim.com/
with IE and if you get an IP address then perhaps it is only my proxy...

It seems the best way to get examples is to search deja.com for JSObject in the microsoft.* newsgroups.

Michel
0
 
Michel PlungjanIT ExpertCommented:
PS: The solheim site has java code for the IP test...

Michel
0
 
allah6Author Commented:
My IP address was not displayed...I got a java.lang.NullPointerException...
0
 
Michel PlungjanIT ExpertCommented:
Me too.

I have emailed him

Michel
0
 
allah6Author Commented:
Let me know if you come across anything

Thanks for your help
0
 
Michel PlungjanIT ExpertCommented:
Anytime

Michel
0
 
Michel PlungjanIT ExpertCommented:
I did find that IE5 has a rather elaborate security setting for java.

If you choose custom security and in there custom java security, there are a lot of things that can be changed

I did not succeed in the 5 minutes I had to spend on that..

Michel
0
All Courses

From novice to tech pro — start learning today.