How to get original client ip as remortAddress in place of haproxy server ip

Hi all,
I’m using haproxy as a reverse-proxy using socketio cluseter with sticky session for scaling in socketIO i need remortAddress. How can i get orignal client ip in remortAddress inplace of haproxy ip with out replacing in HAproxy. Please help me in solving this in haproxy configurations. System environment (In AWS : HA-Proxy version 1.6.5 2016/05/10, CentOS Linux release 7.1.1503, Kernel Version 3.10.0-229.14.1.el7.x86_64)

You can use HTTP headers or the procxy protocol to inform the backends about the real source IP. Read the documentation regarding the actual configuration.