|
I am looking for a method to identify if a user is connecting from outside our LAN. While I can retrieve the ComputerName and IP Address of the remote system using the WTSManager COM object, it is possible/likely for the remote user to have a router and be using the same 192.168.x.x subnet that is used on the LAN. I also do a NSLookup on the IP and compare the computer names, but that too is no guarantee. Someone could use the same private subnet and machine name as what is used on the LAN and this check would identify them as being local. [granted a small probability - but still possible]
SecureRDP is using a method that retrieves the login name, machine name and MAC address - the MAC is retrieved only for local clients, so this would work, if I could find the method to use.
Anyone know of a way to positively identify remote terminal server clients?
|