Not getting the real ip address of client

In core/global.ini.php, there are examples on configuring proxy headers.

In your config/config.ini.php add (depending on your environment):


[General]
proxy_client_headers[] = HTTP_X_FORWARDED_FOR
proxy_host_headers[] = HTTP_X_FORWARDED_HOST