Discussion Locked

Terminal Services Connetion Port

0 helpful
5 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
How can you change the port that Terminal Services uses to make a connection with a remote computer?

5 replies

by mckaytech

The information I have from Microsoft suggests that Terminal Services is hard-coded to use TCP port 3389 and cannot be changed. However, it might be worth doing a registry search using '3389' and see if it is defined by a registry key.

paul

by dc1

To change the listener port on the server, change the following registry value:

HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp\

Change ?PortNumber? from 0x00000D3D (3389 decimal) to another port of your choice not being used. (Try to avoid well-known port numbers)

To change the connect port on the client follow these steps:

1. Open the Client Connection Manager and create a connection to your terminal server
2. Export the connection as a .cns file and then delete the connection from Client Connection Manager.
3. Open the .cns file with a text editor and change ?Server Port? to the newly defined port (Server Port is about 6 lines down from the top).

4. Importthe .cns file back into Client Connection Manager.

For more information, see the MS KB Article: Q187623.

This discussion is closed to new replies.