node.js - Get the ip address of the client making the request in expressjs -


i have application deployed on azure , i'm trying ip address of remote client. unfortunately value undefined when try call

req.ip 

do have idea ip address?

const remoteaddress = req.headers['x-forwarded-for'] || req.connection.remoteaddress; 

Comments