Client IP Behind a Load Balancer
Behind an Application Load Balancer, the app logs the load balancer's private IP for every request. How does the app get the client's IP?
Choose one answer
Enable sticky sessions, which pass the client IP in a cookie.
Read the Host header, which contains the client's IP address.
Host
Read the X-Forwarded-For header the load balancer adds.
X-Forwarded-For
Read the TCP source address, after turning off cross-zone load balancing.