I made this code to get users ip on my site currently i am checking it in my localhost but it is returning something like ::1. I am using xampp package , my code is
<?php
echo $_SERVER['REMOTE_ADDR'];
?>
I would have got my ip 127.0.0.1 as i am on a localhost but it is returning ::1.