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
IP Address using JavaScript
Moderator: General Moderators
- Ambush Commander
- DevNet Master
- Posts: 3698
- Joined: Mon Oct 25, 2004 9:29 pm
- Location: New Jersey, US
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?