io.sockets.on('connection', function(connection) {
console.log(
connection.handshake, // always present
connection.handshake.address, // sometimes undefined
connection.handshake.address.address // sometimes ReferenceError
);
});
Thats pretty much it.
Im expecting connection.handshake.address.address to contain the IP address related to the client, but i sometimes randomly get a ReferenceError there, as connection.handshake.address seems to be undefined.
Node 0.8.x
Socket.IO latest