How to get the IP address of the client/user in PHP?

devquora

Posted On:
Feb 22, 2018

You can use $_SERVER['REMOTE_ADDR'] to get IP address of user/client in PHP, But sometime it may not return the true IP address of the client at all time. Use Below code to get true IP address of user.