terminal-services-gateway

How to use Terminal Services Gateway with the IMsRdpClient6 ActiveX Control?

I am hosting the IMsRdpClient6 ActiveX control in my WinForms application in order to make connections to remote machines. I have setup a terminal services gateway machine, and I can successfully use it. I want to get my ActiveX control to use this gateway. I have set the Gateway options, but connection fails with no error that I can s...

Getting the IP Address of client connected over Terminal Services Gateway

I'm trying to get the external IP Address of clients connected over Terminal Services through a Terminal Services Gateway. I can get the IP Address using WTSQuerySessionInformation if I'm not connected through the gateway, but I get nothing but 0's when I run the same app through the gateway. ...

Programmatically obtaining the clients IP Address over Remote Desktop Gateway

I’m wondering what kind of mechanism I could use to determine a users IP address programmatically when running over Remote Desktop Gateway. I’ve tried using WSQuerySessionInformation to enumerate the clients, but the IP Address is not returned over Remote Desktop Gateway. I would like to restrict access to certain resources by a user/IP ...