Servidor expreso Cómo obtener la solicitud IP
const ip = req.headers['x-forwarded-for'] || req.connection.remoteAddress;
RemziStudios
const ip = req.headers['x-forwarded-for'] || req.connection.remoteAddress;