Hi,
I am looking at a way to return IP related information of a visitor loading
a web page and found the following snippet of code:
if(navigator.ja vaEnabled() && (navigator.appN ame != "Microsoft Internet
Explorer")) {
vartool=java.aw t.Toolkit.getDe faultToolkit();
addr=java.net.I netAddress.getL ocalHost();
host=addr.getHo stName();
ip=addr.getHost Address();
alert("Your host name is '" + host + "'\nYour IP address is " + ip);
at http://javascript.internet.com/user-...roperties.html
Has anyone got any experience of using these functions as I can't seem to
get them to work.
Cheers
Paul.
I am looking at a way to return IP related information of a visitor loading
a web page and found the following snippet of code:
if(navigator.ja vaEnabled() && (navigator.appN ame != "Microsoft Internet
Explorer")) {
vartool=java.aw t.Toolkit.getDe faultToolkit();
addr=java.net.I netAddress.getL ocalHost();
host=addr.getHo stName();
ip=addr.getHost Address();
alert("Your host name is '" + host + "'\nYour IP address is " + ip);
at http://javascript.internet.com/user-...roperties.html
Has anyone got any experience of using these functions as I can't seem to
get them to work.
Cheers
Paul.
Comment