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,

CodePudding user response:

reference 1st floor Jiang Sheng response:
the road might be 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,
well, side legal person with it well, I'm going to write code to implement, is somewhat complicated, arguably should have API available to, is the remote machine and I can't guarantee that the user does not login at the same time

CodePudding user response:

RDP is API, but somebody else did not record physical address, only a name,

Virtual channel can be client and server communication, but not the client address but you want forwarding servers, this virtual channel return true can't,

CodePudding user response:

Well, I use WTSQuerySessionInfomation is access to the client's IP, and according to Microsoft's remarks, they also know that can't use it to get the actual connection to the address, that according to this way of thinking, there should be a method to get the actual connection is forwarding the address of the server, but did not mention how to get to the document, you can also use the API for RDP related information? I can to it as the reference point, looking for the Microsoft word document and its associated API see if we can find the API or methods are available, and thank you for your reply!

CodePudding user response:

reference Jiang Sheng reply: 3/f
RDP is API, but somebody else did not record physical address, only a name,

Virtual channel can be client and server communication, but not the client address but you want forwarding servers, this virtual channel return true can't,
thank you for your reply!

CodePudding user response:

This is not, you can look for Microsoft to, but you the demand is too small, I am not optimistic,

CodePudding user response:

refer to 6th floor Jiang Sheng response:
this is also true: no, you can look for Microsoft to, but you have all the demand is too small, I am not optimistic,
well, looking for a period of time in Microsoft's API is no harvest, maybe I should change the ideas to see the header file and use tools to see if the relevant dynamic database is not published functions are available, and how do you contact Microsoft to? Email or have questions plate, have to all the English...

CodePudding user response:

Windows 10 application can use the feedback directly, you can use Chinese, but if someone will vote for you that is another matter...

CodePudding user response:

refer to the eighth floor Jiang Sheng response:
Windows 10 application can use the feedback directly, you can use Chinese, but if someone will vote for you that is another matter...
also ah,,, thank you!

CodePudding user response:

The building Lord, WTSQuerySessionInformation this can only be used in c + +?
How do you call in python? Suppose I notebook for remote login server hostname, WTSClientName, this should be how to implement?
  • Related