I am an administrator on a server that accepts RDP connections. When the client connects I know the client's computer name. Using netstat I can determine which connections have been established for RDP.
The ping command and variants only work if I ping by IP address; however, the command will not return a hostname. If I ping by hostname the command will always fail. The nslookup command always fails on both the hostname and the IP address. The nbstat command is not available on the machine.
If I have both he hostname and the IP address how do I match them to each other?
Command line tools, programming solutions in C# or a combination of both are all viable options.