We're running multiple node instances behind a stingray load balancer. Our node.js applications run Express.js. When we access req.connection.remoteAddress
it returns the IP of our stingray appliance.
Does anyone know how to forward the client IP?
Thank you!
Provided this information isn't out of date, the X-Cluster-Client-Ip header should contain the original ip.
var remoteAddress = req.header('X-Cluster-Client-Ip');
Other options are referenced here: