Thursday, February 23, 2012

How to change the listening port for Remote Desktop on Windows 7

Sometimes you may have multiple computers at home you'd like to remote into when you're away. By default, Remote Desktop listens for connections on port 3389. Since your router can only forward requests to that port to one machine, you need to change the port Remote Desktop is listening to on your other machine.

1) This is going to require you making changes to your registry. Open up the Run dialogue and type in regedit.

2) This will open up your Registry Editor. Before making changes, let's backup your current registry. Right click on Computer and click Export and choose where you'd like to backup your registry to.

3)  Now navigate to the following location: HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\TerminalServer\WinStations\RDP-Tcp\PortNumber

4) Double click the registry setting to open it. Enter your new port you'd like to use, I am choosing 3379. Make sure that the Decimal combo box is selected. Once you press OK, restart your computer.

5) After the computer has restarted, open up the command prompt. Now type in Netstat -a and look to see that your new port is listed.

6) Now when you go to connect to this computer using the RDP client, make sure to enter in the port number after. 

No comments:

Post a Comment