node-cluster-socket.io icon indicating copy to clipboard operation
node-cluster-socket.io copied to clipboard

how to get original client ip while using Haproxy

Open somaranaresh opened this issue 7 years ago • 1 comments

Hi elad, I'm using haproxy as a reverse-proxy, I'm getting haproxy ip as client ip at 'connection.remoteAddress'.In my use case clients will connect via haproxy and using node-cluster-socket.io for sticky-session. If i use haproxy x-forwarded-host now how do i get original client ip from node-cluster-socket.io

somaranaresh avatar Jul 12 '16 14:07 somaranaresh

@somaranaresh I just added a comment on issue #9, which is probably related with the issue you have raised. Still waiting for Elad's response. :-) At the same time, you may take a look at issue #7 and #15, which may be helpful.

davidolen avatar Jan 01 '17 19:01 davidolen