Enable X-Forwarded-for parameter on the Load Balancer ( F5,VIP).
X-Forwarded-For request header helps you identify the IP address of a client when you use an HTTP or HTTPS load balancer. Because load balancers intercept traffic between clients and servers, your server access logs contain only the IP address of the load balancer. To see the IP address of the client, use the
X-Forwarded-For request header. Elastic Load Balancing stores the IP address of the client in the
X-Forwarded-For request header and passes the header to your server.