Discussion:
Getting ip Address from the computer that gets the session up.
(too old to reply)
Roxana
2006-01-04 15:27:06 UTC
Permalink
Hi, I need your help. I want to get the ip address from the computer that is
connecting to the terminal through remote desktop. I mean, the computer SD
192.168.10.10 connects to the terminal Service (Windows 2000), so the
program in the terminal needs to know the ip of the computer SD.

hOW TO DO THAT???
Please, help.
I would really appreciate your gentile Help, as soon as possible.
--
Roxana
Vera Noest [MVP]
2006-01-04 21:56:23 UTC
Permalink
You can retrieve the client IP number with the
WTSQuerySessionInformation function.

http://msdn.microsoft.com/library/default.asp?url=/library/en-
us/termserv/termserv/ip_addresses_and_computer_names.asp

_________________________________________________________
Vera Noest
MCSE, CCEA, Microsoft MVP - Terminal Server
TS troubleshooting: http://ts.veranoest.net
___ please respond in newsgroup, NOT by private email ___
Post by Roxana
Hi, I need your help. I want to get the ip address from the
computer that is connecting to the terminal through remote
desktop. I mean, the computer SD 192.168.10.10 connects to the
terminal Service (Windows 2000), so the program in the terminal
needs to know the ip of the computer SD.
hOW TO DO THAT???
Please, help.
I would really appreciate your gentile Help, as soon as
possible.
Loading...