var app = express(); //... app.get('/', function (req, res, next) { //... ТУТ НУЖНО ПОЛУЧИТЬ АДРЕС });
var ip = req.headers['x-forwarded-for'] ||req.connection.remoteAddress ||req.socket.remoteAddress ||req.connection.socket.remoteAddress;