I have tried request.headers['X-Real-IP']
and request.headers['X-Forwarded-For']
as per some other forum posts but I only get the address for some random aws server in virginia? Any guidance would be appreciated.
I have tried request.headers['X-Real-IP']
and request.headers['X-Forwarded-For']
as per some other forum posts but I only get the address for some random aws server in virginia? Any guidance would be appreciated.
That sounds very strange -- what's the IP address that you're getting?
ip: 52.55.176.7
host name: ec2-52-55-176-7.compute-1.amazonaws.com
AS14618 Amazon.com, Inc.
Location: Ashburn, Virginia
That's the server where your website is running. Are you making requests to your website from inside its own code, perhaps?