In my socket.io code,
socket.sockets.on(\'connection\', function(client){ var ip = client.handshake.address.address; .. }
ip alwa
In version > 1.0, the syntax is similar:
socket.handshake.headers['x-forwarded-for'] || socket.request.connection.remoteAddress;