1. Start Registry Editor.
  2. Locate and then click the following registry subkey:
    HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp\
  3. Right click on the one called PortNumber
  4. On the Edit menu, click Modify, and then click Decimal.
  5. Type the new port number, and then click OK.
  6. Quit Registry Editor.
  7. Restart the computer.