Board index Windows

Moderator: chandranjoy

How to modify Windows RDP Port number

Postby chandranjoy » Sun Nov 21, 2010 3:38 pm

How to modify Windows RDP Port number
This tutorial will explain how using registry editor to change the Remote Desktop Protocol (RDP) port number on your Windows 2003 / XP / Vista, Windows 7 .
This will be useful when you are behind a firewall or NAT and the default port 3389 is disabled.

Also, there are many scanning bots ran on hacked servers trying to brute-force the administrator password on other computers with Windows OS. As it takes a lot of resources the whole range of port to be scanned on every server, the bots are set to try only a short range to see whether particular service is running.

Changing the port will decrease the chance your server to become a target of brute-force attacks via Remote Desktop Protocol. Basically this will hide the server from automated scans looking for RPD.

To change the port you will need to start Windows Registry Editor.

Go to : Start -> Run... type 'regedit' and press OK

Image

Expand the registry folders to:

HKEY_LOCAL_MACHINE > System > CurrentControlSet > Control > TerminalServer > WinStations > RDP-Tcp


Then locate the following registry subkey :

PortNumber


Image

On the Edit menu, click Modify, and then on the Edit DWORD Value click Decimal which will show us the exact port number.

Image

Type the new port number, and then click 'OK' button.

Quit Registry Editor and restart your computer.
Make sure the firewall has the new port opened!
If you do not set access enabled for that specific new port, you wont be able to have access via remote computer.

Hope this tutorial brought some help about how to change the Remote Desktop Port
chandranjoy
Site Admin
 
Posts: 283
Joined: Fri Oct 23, 2009 11:19 pm

Return to Windows

Who is online

Users browsing this forum: No registered users and 1 guest


cron