Search the reference...
/
property
The IP address of the client.
console.log(socket.remoteAddress); // "127.0.0.1"