Get user IP Address with PHP


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



Copy this code and paste it in your HTML
  1. <?php
  2.  
  3. $ip = $_SERVER['REMOTE_ADDR'];
  4. echo "Your IP address is $ip";
  5.  
  6. ?>

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.