How to change the listening port for Remote Desktop in Windows

Enable RDP at all

<

The last thing that needs to be done in order for Remote Desktop to work correctly is to tell Windows that we want to allow users to connect. So far we’ve just fulfilled the requirements, but now we have to actually allow remote desktop connections to this computer.

Go to Start, Control Panel, and click on System. Click on the Remote tab and make sure that the “Allows users to connect remotely to this computer” is checked.

And that’s it! Your computer is now setup to connect to!

Enable it through firewall

To do this, go to Start, Control Panel, Windows Firewall and click on the Exceptions tab.

Make sure that the Remote Desktop checkbox is checked. Don’t worry about how my screen looks, it’s part of a corporate network.

You should have a lot less entries and one of them should be Remote Desktop.

Check it and then click OK.

Change the port

  1. Start Registry Editor.
  2. Locate and then click the following registry subkey:
    HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\TerminalServer\WinStations\RDP-Tcp\PortNumber
  3. On the Edit menu, click Modify, and then click Decimal.
  4. Type the new port number, and then click OK.
  5. Quit Registry Editor.