Discussion:
Client IP Address
(too old to reply)
Heinz Deubler
2005-02-03 23:23:02 UTC
Permalink
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
Vera Noest [MVP]
2005-02-04 21:13:05 UTC
Permalink
You can retrieve the clients IPnumber and computername with the
WTSQuerySessionInformation function

--
Vera Noest
MCSE, CCEA, Microsoft MVP - Terminal Server
http://hem.fyristorg.com/vera/IT
--- please respond in newsgroup, NOT by private email ---

"=?Utf-8?B?SGVpbnogRGV1Ymxlcg==?="
Post by Heinz Deubler
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
ts user
2005-02-23 13:27:45 UTC
Permalink
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
Post by Vera Noest [MVP]
You can retrieve the clients IPnumber and computername with the
WTSQuerySessionInformation function
--
Vera Noest
MCSE, CCEA, Microsoft MVP - Terminal Server
http://hem.fyristorg.com/vera/IT
--- please respond in newsgroup, NOT by private email ---
"=?Utf-8?B?SGVpbnogRGV1Ymxlcg==?="
Post by Heinz Deubler
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
Loading...