I'm using the WTSManager.dll in my logonscripts to retrieve the IP-address of the client connecting to the WTS server and it works...most of the time. It seems that some times it gets the wrong IP-address - and if I compare my finding it seems that the incorrect IP-address belongs to another user currently logged on to the same WTS server.

Has anyone else seen this before? Anyone using the WTSManager.dll at all?

And does anyone have any idea of what might be wrong?

Thanks,
Nicolaj