2. Locate and click the following registry subkey:
HKEY _ LOCAL _ MACHINE \ System \ current Control set \ Control \ TerminalServer \ WinStations \ RDP Tcp \ port number
3. On the Edit menu, click Modify, and then click Decimal.
4. Type the new port number, and then click OK.
5. Exit Registry Editor.
6. It will take effect after restarting the computer.