Azure function
headers: {
‘Content-Type’: ‘application/json’
},
body: {
ip: (
req.headers[‘x-forwarded-for’].split(":")[0]
//req.headers[‘x-forwarded-for’] //||
//req.connection.remoteAddress ||
//req.socket.remoteAddress //||
//req.connection.socket.remoteAddress
)
}