php script to show visitors IP

 

Create a .php file

 

# vi  showip.php

 

<h1>My Ip Address</h1><hr> <br><br> Your Ip Address is: <strong><?php echo $_SERVER[‘REMOTE_ADDR’]; ?></strong><br><br>

 

Close the file and  done

RESULT

http://admin2.mweb.com.na/showip.php