This question already has an answer here:
I want to get the localhost IP address . I am using the php $_SERVER super global:
$_SERVER['REMOTE_ADDR']; I get my IP address and see it is different from my IP address my output like this ::1 my result is right or wrong how can we find it
</div>