RDP Client address is unknown when connecting through a gateway

Looks like this isn't possible. I'm going to file a feature request with Microsoft.


Since the TS gateway is effectively a proxy, why don't you query the proxy's logs? Filtering for the last event 303 from Remote Desktop Gateway by the user in question should supply you with the IP. I am not aware of any "X-Forwarded-For"-style header in RDP.