1

Client IP address behind ELB + Getting my own IP on the EC2 Server

view story
linux-howto

http://serverfault.com – I want to get the real IP address of the client when I am behind Amazon Elastic Load Balancer (ELB). I know that ELB populates "X-Forwarded-For" header with the original client IP address. My problems is as follows: 1) Browsing my site from the EC2 instance, I get the IP address of the EC2 machine (elastic IP address) 2) Now I browse the site from my own laptop computer and get my IP address. So far things are good. 3) My issue is that when I go back to the EC2 instance and try to browser my page, I get the IP address of my local computer, not the EC2 IP address which I've got before. Can' (HowTos)