$_SERVER returns me ::1

Asked

Viewed 33 times

0

Good afternoon!

If I in PHP give a echo/var_dump/print_r, etc... in $_SERVER['REMOTE_ADDR']; Note: In host place, it returns to me: ::1

Why that? What does that mean ::1?

  • 2

    Means localhost (127.0.0.1 ipv4) in ipv6.

  • Can’t show 127.0.0.1? There’s no way to change that?

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.