- Forums
- PHP
- Simple PHP Script To Show Your Visitors Computer Remote IP Address
this page will show your wan ip address and a script written in php to show you the ip address how you obtain it using php code and very simple to use. i provide some sample code you can use in your php script to get your visitors wan ip address address [962], Last Updated: Sat May 18, 2024
wallpaperama
Wed Sep 13, 2006
36 Comments
37214 Visits
YOUR IP ADDRESS IS: 172.71.254.158
this is a very simples script which we got from webune when we were troubleshotting our website:
you can run this script on your website if you want to see it in action, just copy and paste to your text editor and upload it to your website.
1. copy and paste the code below:
<h1>Show My Ip Address Script</h1><hr>
By <strong>Wallpaperama.com</strong><br><br>
Your Ip Address is: <strong><?php echo $_SERVER['REMOTE_ADDR']; ?></strong><br><br>
Cool! - See how simple it is to get and display the ip address of your visitors to your site. We hope you learned from this show tutorial on how to display your ip address using php<br>
<br>
If you want to see more helpful scripts for your website, <a href="http://www.wallpaperama.com">Click Here to See More Helpful Scripts >>>>></a>
2. save it as "get-ip.php", if you are using notepad, make sure to put the quotes ( " ) when Saving As
3. upload the file to your PHP website.
our friends at www.webune.com have provided us with PHP hosting to bring you a demo of this script.
but i want to full address like you.