![]() |
Who knows how to display a persons IP address?
Anybody know how to make someones IP address show up on a webpage? How do you make that persons IP address show up when they visit my site? I want to put this on my sign-up page but don't know how. Anyone? Anyone? Bueller? Bueller?
|
|
It can be done using javascript. Check out some major javascript sites for free scripts that will do this.
|
How is that done? How do you display my IP address??
|
[!--#echo var='REMOTE_ADDR' --]
Or something like that cant remember exactly |
|
PHP Code:
|
That doesnt work with IE matty, im checking javascript sites now...
|
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin if ((navigator.appVersion.indexOf("4.") != -1) && (navigator.appName.indexOf("Netscape") != -1)){ ip = "" + java.net.InetAddress.getLocalHost().getHostAddress (); document.write("Your IP address is " + ip); } else { document.write("IP Address only shown in Netscape with Java enabled!"); } // End --> </script> |
127.0.0.1
|
| All times are GMT -7. The time now is 05:50 AM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2026, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123