$_server 'http_x_forwarded_for' doesn't show code example
Example 1: php get user ip
$ip = $_SERVER['REMOTE_ADDR'];
Example 2: php get ip address
$clientIPAddress=$_SERVER['REMOTE_ADDR'];
$ip = $_SERVER['REMOTE_ADDR'];
$clientIPAddress=$_SERVER['REMOTE_ADDR'];