Prasatko
(Fresh Scripter)
2002-09-16 11:59 AM
client ipadress in TS environment

Hi there!

I'm trying to figure out how to fetch the client ipaddress when someone is connecting through a Terminal Service or Citrix connection.
Do any of you know of a way to do it?

Thanks!
Jeroen


Kdyer
(KiX Supporter)
2002-09-16 01:58 PM
Re: client ipadress in TS environment

Jeroen,

From the Kixtart Manual..

Doesn't @IPADDRESS0 do what you are looking for?

HTH,

Kent


Howard Bullock
(KiX Supporter)
2002-09-16 02:04 PM
Re: client ipadress in TS environment

Kyder, all macros executed in the logon script of a TS client reflect the attributes of the Terminal Server not the client where the TS session was started. My tak on this is that we are trying to determine the location of the computer that started the TS session.

Richard H.Administrator
(KiX Supporter)
2002-09-16 02:17 PM
Re: client ipadress in TS environment

Here is some work I did on this a while back. You'll notice that one of the items returned is the client's IP address.

Note the caveat though - this uses Citrix (MetaFrame) SDK.

To be honest I'd forgotten all about it and only turned it up in a search. Remember, "search" is your friend.


Prasatko
(Fresh Scripter)
2002-09-16 02:23 PM
Re: client ipadress in TS environment

Hi Richard!

Thanks I'll look into it. I tried search, but must have used the wrong keywords... As I didn't find anything.
I'm diving into it right now.

Jeroen

[ 16. September 2002, 14:26: Message edited by: Prasatko ]


Les
(KiX Master)
2002-09-17 04:26 AM
Re: client ipadress in TS environment

Take a look at this gem
http://thethin.net/clientinfo.zip

I haven't tested it but it looks like it might fit the need.

There's also a WTSManager.DLL floating about that can be accessed via COM. GOOGLE found it but the site was down when I checked.


Sam Wu
(Lurker)
2002-09-21 01:52 AM
Re: client ipadress in TS environment

Hello,

I am trying to accomplishing the same thing. The problem is that clientinfo.zip (and ctxinfo.exe sp?) requires a bunch of Citrix dll that is not easily accessible.

How do people here log Terminal Service access? I would like to capture the IP address of where the orignating IP address.

Thanks in advance.
Sam


Les
(KiX Master)
2002-09-21 04:02 AM
Re: client ipadress in TS environment

Sam,
Check your mail.
I sent you WTSManager.DLL


Kdyer
(KiX Supporter)
2002-09-21 08:08 AM
Re: client ipadress in TS environment

Jeroen/Sam,

Found a thread where the same issue came up before - HowTo determine IP Address.

Thanks!

Kent