IP address of the client

R

rapi

How to achive the IP address of the client connected to a server through
terminal services on Windows Server 2003 ?
 
V

Vera Noest [MVP]

From http://ts.veranoest.net/ts_faq.htm

Q. How can I retrieve the client IP number?

A. You can retrieve the client IPnumber and computername with the
WTSQuerySessionInformation function, or the client computername with
the environment variable %CLIENTNAME%.

If you are a software developer, this is recommended reading:
Terminal Services Programming Guidelines
http://msdn.microsoft.com/library/default.asp?url=/library/en-
us/termserv/termserv/terminal_services_programming_guidelines.asp
_________________________________________________________
Vera Noest
MCSE, CCEA, Microsoft MVP - Terminal Server
TS troubleshooting: http://ts.veranoest.net
SQL troubleshooting: http://sql.veranoest.net
___ please respond in newsgroup, NOT by private email ___
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top