Convox Community

HTTP headers from load balancer not specifying real client IP

Hi all,

I just created a fresh v3 rack in AWS. I’m trying to pass along the true external client IP to my application, but it looks like that data is being stripped somewhere along the way.

Here’s the raw HTTP request data I see when I run a dummy service with a simple HTTP listener:

X-Request-ID: 771434122d4833d982832008d49dde9c
X-Forwarded-Host: <my host parameter>
X-Forwarded-Port: 443
X-Forwarded-Proto: https
X-Scheme: https
<other client HTTP headers> happens to be the private IP of one of the rack EC2 instances.

Is there any way to get the real external IP, or is that not possible in v3 racks?