Get request ip address using express in Nodejs
Get request ip address using express in Nodejs Here’s the way to get the x-forward-for head var ip = req . headers [ 'x-forward-for' ] make sure all the keyword is lower case!! It took me half a day to find this mistake. Result: Reference https://stackoverflow.com/questions/8107856/how-to-determine-a-users-ip-address-in-node https://flaviocopes.com/express-headers/