PHP script to display visitor's Public IP Address


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  1. <?
  2. $ip=$_SERVER['REMOTE_ADDR'];
  3. echo "<font face='Verdana' size='3'><b>IP Address= $ip</b>";
  4. ?>

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.