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