: : Hello everyone,
: :
: : I want my webpage to find and display the client's IP address for them. Is there a way to use non-cgi, non-asp programming to do this? Is there an HTML or JavaScript way, that would work for IE and Netscape?
: :
: : Thanks for your help.
: :
:
: With JavaScript you can only get the IP from NetScape, cause IE has a little bit better protection (with cgi you can still get it). Anyway, here's the netscape way:
:
: <script language="JavaScript">
: localipinfo=java.net.InetAddress.getLocalHost();
: ip=localipinfo.getHostAddress();
:
: document.write("Your IP address is " +ip+ "");
: </script>
:
: The problem is dat IE doesn't know the java object.
i supose the code is good ....
but why don't you want it in cgi ?
almost all freeservers bravenet etc have a cgi bin .
and a paid server must actually have a cgi otherwise he haven't clients
their is one very large hd etc detector on astalavista.com look in your stats (some thing like that look a bit around)
regards
ed
: