Client IP Address

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I would like to keep track of the ip addresses of computers running RDP and
connect to your Terninal Server. Is there a way of doing that?

Thanks
Heinz
 
You can retrieve the clients IPnumber and computername with the
WTSQuerySessionInformation function
 
I tried WTSQuerySessionInformation api with the WTSClientAddress for the
infoclass to retrieve the Client's IP address. This works fine when a client
connects to the server via a Remote Desktop connection in XP or Windows
2003. However, this API fails when called via a Terminal Server Client
created from the Client Connection Manager console. The AddressFamily from
the PWTS_CLIENT_ADDRESS return buffer is always AF_UNSPEC.

Any reason why this is? Or any other solutions to resolve this problem?

Any help is grreatly appreciated.

Shady
 
Back
Top