When a user sends a request to ELB over HTTP/HTTPS, the request header log at the instance willonly receive the IP of ELB. This is because ELB is the interceptor between the EC2 instance and theclient request. To get the client IP, use the header X-Forwarded-For in header. The client IP addressin the X-Forwarded-For request header is followed by the IP addresses of each successive proxy thatpasses along the request. The last IP address is the IP address thatconnects to the back-endapplication instance. e.g. if the HTTP request already has a header when it reaches the Load Balancer,the IP address from which the request came is appended at the end of the header followed by the IPaddress of the Load Balancer. In such cases, the X-Forwarded-For request header takes the followingform: X-Forwarded-For: clientIPAddress, previousRequestIPAddress, LoadBalancerIPAddress. Reference: http://docs.aws.amazon.com/ElasticLoadBalancing/latest/DeveloperGuide/TerminologyandKeyConcepts.html