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

Comments

  1. It’s also unclear which other ad classes have been paused. Pay off as much as you can to|you presumably can} –Consider promoting a few of your valuables like jewellery, electronics or memorabilia. Don’t sell your car if it offers you 카지노 transportation to work. The longer you wait, the extra dangerous the situation with bookies and loan sharks becomes and the extra curiosity you rack up via credit accounts.

    ReplyDelete

Post a Comment

Popular posts from this blog

Convert a shell script into an executable binary

Understanding htop value

Mac terminal environment setup - zsh + Powerline + tmux