I'm trying to get the Client's IP Address from Socket IO and when I type
console.log(socket.conn.remoteAddress)
It returns ::1
::1
socket.handshake.headers['x-forwarded-for'].split(',')[0]
worked for me