Your Ad Here

Home Articles | Tutorials | Troubleshooting | Tweaks | Subsribe to RSS Feed Subscribe to RSS Affiliated sites

Follow me  Follow gusac on Twitter Subscribe Subscribe to RSS


Your Ad Here

How to change Terminal Server listening port

19.Sep.2009 | by Gusac | Filed in: Articles, Tweaks

Terminal services listen on port 3389 (TCP) to accept client connections. But if wish you to change the port Terminal services listening on, probably because of extra security, here is how to do it.
We need to make changes in registry to achieve this. Make sure we take a backup of registry before making any changes!

Here are the steps:

  • Open Registry editor. (Type 'regedit' in run/cmd window)

  • Navigate to the following registry key:
    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp

  • On the right pane, there would be a DWORD value (REG_DWORD) named 'PortNumber' with value data 0x00000d3d(3389). Now 0x00000d3d is the Hexadecimal value and in parenthesis decimal value 3389 is given. This is the port number.

  • All you have to do is double click on this DWORD 'Port Number' and modify it.

  • Let's modify it and change the port number to 3390 (example). Make sure you select Decimal while changing the value data

  • Once, you're done, restart the system and that's it! Now you need to configure Remote desktop client to connect to new port.

  • While connecting from your client, you must mention the port number as well else it will not connect. Generally, In Remote desktop client we only mention the terminal server name or ip address and the query goes to the port 3389 by default. But here we will have to mention because the Terminal Server isn't listening on port 3389 anymore.

  • Let's say we're connecting to a TS! and we have changed it port to 3390. So, we need to type TS1:3389 to connect.


 
Site viewed: times.