Home > Software engineering > Ask how to get the remote desktop RDP actual connection to the server IP?
Ask how to get the remote desktop RDP actual connection to the server IP?
Time:09-16
Bosses, ever get RDP remote desktop actual IP port connection? I have A specially designed to give people connect remotely computer C, my computer is A connection request sent to B, but turn forward from B to C, so I can remote to the C, now I in C with WTSQuerySessionInformation get client IP address access to my computer is A address, but I want to get B's address, you can use netstat see B address, but because C is by multiple computer remote connection, so can't determine which from the netstat return is B, is there any API or method to obtain or address A B?
CodePudding user response:
Path may have B1, B2, B3 such multilayer devices, remote desktop protocol does not like HTTP, forwarding a layer with X - Forwarded - For recording an IP address, Want to know the last level of source IP address, can open log audit and then checked according to the time of the session to create security event logs in 4624 (the session logon) and 4778 (disconnected session re - logon) events, the method of the problem is too many users, at the same time have more than one user login don't know which is which,