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?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Michel PlungjanIT 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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
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 Ultimate Tool Kit for Technolgy Solution Provi

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy for valuable how-to assets including sample agreements, checklists, flowcharts, and more!

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
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
JavaScript

From novice to tech pro — start learning today.