In my socket.io code,
socket.sockets.on(\'connection\', function(client){ var ip = client.handshake.address.address; .. }
ip alwa
yes, this is working for me.
client.handshake.headers['x-forwarded-for'] || client.handshake.address.address;
I am properly getting the remote IP address and not 127.0.0.1