getting public IP adress in TS session ?

TC

Distinguished
Apr 6, 2004
201
0
18,680
Archived from groups: microsoft.public.windowsnt.terminalserver.applications,microsoft.public.windowsnt.terminalserver.misc (More info?)

I'm using the structure WTS_CLIENT_ADDRESS to get the client network adress
in TS Session.

In this article,
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/termserv/termserv/wts_client_address_str.asp

"The client network address is reported by the RDP client itself when it
connects to the server. This could be different than the address that
actually connected to the server"

How to get the public adresse instead of local IP ?

regards
Tom
 
G

Guest

Guest
Archived from groups: microsoft.public.windowsnt.terminalserver.applications,microsoft.public.windowsnt.terminalserver.misc (More info?)

One (clumsy) way of doing this is to scan the output of e.g.
"netstat -n".

Next you will have to find out which client connection
corresponds to which of the public IPs netstat gave you - which
is easy if you have only one client at a time, but otherwise
means that you have to do some additional work to trace down
which IP belongs to which session.

regards

tc schrieb:
> I'm using the structure WTS_CLIENT_ADDRESS to get the client network adress
> in TS Session.
>
> In this article,
> http://msdn.microsoft.com/library/default.asp?url=/library/en-us/termserv/termserv/wts_client_address_str.asp
>
> "The client network address is reported by the RDP client itself when it
> connects to the server. This could be different than the address that
> actually connected to the server"
>
> How to get the public adresse instead of local IP ?
>
> regards
> Tom
>
>
>