Page 1 of 1 1
Topic Options
#119056 - 2004-05-05 03:23 PM Log client IP on Terminal Server
LarsSchwittay Offline
Lurker

Registered: 2004-05-05
Posts: 4
Hello, any ideas how I can collect the client's IP that login to a Terminal Server? If I ask the IpAddress object from WMI I will only get the Terminalserver's IP and not the IP of the RDP client.

Br amd thanks for impressions, Lars Schwittay

Top
#119057 - 2004-05-05 03:32 PM Re: Log client IP on Terminal Server
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Check out our FAQ section.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#119058 - 2004-05-05 03:50 PM Re: Log client IP on Terminal Server
LarsSchwittay Offline
Lurker

Registered: 2004-05-05
Posts: 4
Hi, may be I am too silly :-) - but I did not find any related. If you thought about the GetIP-sample script for example - this will not help, because it will log the local adapters (the Terminal Server itself) and not the IP of the client that connects with an RDP client such as mstsc.exe. I will keep on searching - may be I can find it myself :-). Br Lars Schwittay
Top
#119059 - 2004-05-05 04:49 PM Re: Log client IP on Terminal Server
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
What about Citrix and/or Terminal Server Client Collection ?
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#119060 - 2004-05-05 07:03 PM Re: Log client IP on Terminal Server
LarsSchwittay Offline
Lurker

Registered: 2004-05-05
Posts: 4
Hi Les, thank you very much and I really was to silly to search :-). This is exactly the information, that I needed, because there is also a way without Citrix SDK. Thank you again for your help :-)
Br
Lars Schwittay

Top
#119061 - 2004-05-05 09:30 PM Re: Log client IP on Terminal Server
ShaneEP Moderator Offline
MM club member
*****

Registered: 2002-11-29
Posts: 2127
Loc: Tulsa, OK
And if you do want to use the MFCOM objec on citrix you can use...

Code:
$ctxsession = CreateObject("MetaFrameCOM.MetaFrameSession")
$ctxsession.Initialize(6, "", "", -1)
$ClientIP = $ctxsession.ClientAddress



Not sure if it was ever fixed...But there used to be some problem with Non-admin users running MFCOM scripting. So it may work for admins and not regular users, which would suck, but you'll just have to try it.

Top
#119062 - 2004-05-06 05:38 AM Re: Log client IP on Terminal Server
Howard Bullock Offline
KiX Supporter
*****

Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
You could also use ClientData.exe or a customization. http://home.comcast.net/~habullock/Perlutilities.htm
_________________________
Home page: http://www.kixhelp.com/hb/

Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 623 anonymous users online.
Newest Members
min_seow, Audio, Hoschi, Comet, rrosell
17881 Registered Users

Generated in 0.053 seconds in which 0.022 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org