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...
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.
...
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 ...