我有这样的环境:
我有一个Windows服务器与许多客户端,将连接到它在远程桌面。
对于每个客户端,它创build一个新的会话,它连接到rdesktiop。
我需要的是在Document And Settings文件夹中创build一个相对于连接客户端的文件,我在其中存储连接的客户端的IP地址。
使用netstat -n | find ":3389" | find "ESTABLISHED" netstat -n | find ":3389" | find "ESTABLISHED" netstat -n | find ":3389" | find "ESTABLISHED"我达到获得客户端连接的所有IP地址,但不是唯一我需要的。
有人可以给我一个简单的解决scheme?
谢谢!
有一个StackOverflow类似的问题,也许它有帮助:
https://stackoverflow.com/questions/1510093/how-to-get-the-ip-address-of-the-remote-desktop-client