I'm trying to get a person's IP address that hits my site. And I have the following section of test code that ISN'T working (tried both as an html and jsp page):
var ip = new java.net.InetAddress.getLocalHost();
var ipStr = new java.lang.String(ip);
In contacting Lunarpage support, they said I WOULDN'T need to upload any java standard library/classes to my specific site directory (putting under WEB-INF). Can anyone help ID why the above code isn't working...or what I need to do to get that basic functionality to work?! Thanks much!