Birkemeier Consulting Tech Blog

Tuesday, July 22, 2008

Allow Remote desktop to listen on more than one port at a time.

There are times when it would be helpful to have Remote Desktop listen on more than one port at a time. Microsoft has a knowledge base article on how to do it. (kb555031)

In order to add the new listening port:

1) Run REGEDIT on your Server.

2) Export the following key:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp

3) Edit the REG file and change the name of the key to something like:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp-New

4) In the REG file find
PortNumber
and change it to whatever port you want.

5) Import the REG file back to the registry.

You can now connect to the new port by using the "old" Windows 2000 Terminal Server client. A better option is to use the XP RDP 5.1 or the newer Windows Server 2003 RDP 5.2 client.

To Alter the Port on the client side:

1) Go to the Start menu and click on Run.

2) On the Run menu type MSTSC and click Enter.

Note: To use RDP on computers with operating systems other than Windows XP/2003 you will first need to install the RDP client.

3) In the RDP window, in the Computer box, scroll to the computer name or IP to which you wish to connect.

4) Add a ":Port" (without the quotes) where "Port" is the decimal value of the destination port.

5) Press Connect.

Another method of connecting to a different port that default is to run the MSTSC command with the required command line parameters:
/v:ServerName[:Port]

For example: MSTSC /v:192.168.0.150:3390

Labels: ,