MRBEATZ wrote on 06 mrt 2005 in comp.lang.javascript
:
I'm new to this group on here, but I wanted to know if anyone knows
how to display an IP address using javascript. Thanks in advance.
document.write("123.456.1.1");
Is it about displaying "an" IP or
about determining what your own IP is?
The server often sees another IP adres [router, proxi],
than your browser uses.
Serverside asp example using clientside javascript to display:
document.write("<%=request.servervariables("remote _addr")%>");
With pure clientside javascript it is impossible, I believe.
--
Evertjan.
The Netherlands.
(Replace all crosses with dots in my emailaddress)