Rdp preserve client ip

Hi i’m trying to balance my windows server 2022 rdp remote app sessions, my main problem is that we have a program that read the source ip from clients, and when add rdp throug haproxy, all ips are the haproxy server ip, any way to solve this, i heard something about send-proxy, but not how to configure the server side.

So many thnks.