Page 1 of 1

IP Address using JavaScript

Posted: Wed May 18, 2005 2:47 pm
by anjanesh
Is there any to get the client's IP address using JavaScript alone ?
Im not looking for the most common soultion java.net.InetAddress.getLocalHost().getHostAddress(); - this will require Java plugin.

Thanks

Posted: Wed May 18, 2005 6:36 pm
by Ambush Commander
Hmm... that's tricky. Most of the solutions I found used SSI or, as you mentioned, the Java solution. http://stud1.tuwien.ac.at/~e9125168/javas/jhostip.html does something but I don't think it works (at least, not with Firefox). Perhaps IP addresses are only "truly" available to server-side scripts?

Posted: Wed May 18, 2005 11:37 pm
by anjanesh
Its the Java plugin version.
Infact I get the IP in FireFox but in IE its not - showed some error.