I'm connecting to my app, which is running on an AWS EC2 instance. I'm trying to get the client IP address but it is showing up as 127.0.0.1
I've tried retrieving it with both req.ip
and req.connection.remoteAddress
. Is there a way to get the IP address that's not the localhost IP?