var ip = req.headers["x-real-ip"] || req.connection.remoteAddress;
if (ip.substr(0, 7) == "::ffff:") {
ip = ip.substr(7);
console.log(ip);
}
var ip = req.headers["x-real-ip"] || req.connection.remoteAddress;
if (ip.substr(0, 7) == "::ffff:") {
ip = ip.substr(7);
console.log(ip);
}