The communication Protocol used by the Remote Desktop service is Microsoft-defined RDP (Reliable Data Protocol) Protocol, and the TCP Communication Port Number of the RDP Protocol is 3389. For the sake of security, we often need to change its port.
Run registry editor and find
HKEY_LOCAL_MACHINE \ System \ CurrentControlSet \ Control \
Terminal Server \ Wds \ Repwd \ Tds \ Tcp
And HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \ Control \ TerminalServer \ WinStations
The key value of the next PortNumber key: 0xd3d, which is in hexadecimal notation, that is, 3389 in decimal notation, that is, the RDP protocol port. Change it to the port you want to set.
Modify the Remote Desktop Connection port on the client: ps: the simpler method is to add a port number directly after the connection)
Open notepad and add the segment server port: I: 3390 -- 3390 as the port number. You can change it to the port you want to set.
Save as rdp file with the extension: RDP File Format: Selected name: Data Type (I-integer/s-string: Data
Run mstsc.exe (Remote Desktop Connection) to open the file.
Related Articles]
- Windows terminal service and remote desktop Web access and port modification methods
- Configure Remote Desktop client to connect to a specific port
- Experience in using Remote Desktop Connection