Organizational Research By

Surprising Reserch Topic

not getting remote address while using proxy in socket io


not getting remote address while using proxy in socket io  using -'node.js,proxy,socket.io'

In my socket.io code,

socket.sockets.on('connection', function(client){
    var ip = client.handshake.address.address;
    ..
}


ip always returns 127.0.0.1 and this is because the server sits behind a proxy.
How do I get remote address properly ?      

Edit: I am using http-proxy
    
asked Oct 7, 2015 by sumit_jaiswalmca
0 votes
2 views



Related Hot Questions



Government Jobs Opening


...