In older version of PHP, I had got client's IP address by $REMOTE_ADDR or $_SERVER['REMOTE_ADDR'], but sometimes it does not work .Following on latest version of PHP. Following code helps you to get the correct client IP address.
...
In older version of PHP, I had got client's IP address by $REMOTE_ADDR or $_SERVER['REMOTE_ADDR'], but sometimes it does not work .Following on latest version of PHP. Following code helps you to get the correct client IP address.
...