Express Server Как получить IP -запрос
const ip = req.headers['x-forwarded-for'] || req.connection.remoteAddress;
RemziStudios
const ip = req.headers['x-forwarded-for'] || req.connection.remoteAddress;
var ip = req.headers['x-forwarded-for'] || req.socket.remoteAddress
const IP = req.headers['x-forwarded-for'] || req.socket.remoteAddress;
// DEPRECATED: req.connection.remoteAddress;