Networking, Programming and Graphics - Tutorials
Networking, Programming and Graphics - Tutorials
OS tutorials, windows registry, registry editor, Windows tutorials

Change Windows remote desktop port number

Type: Code Networking, Programming and Graphics - Tutorials
Networking, Programming and Graphics - Tutorials
Level: Beginner Networking, Programming and Graphics - Tutorials 
Networking, Programming and Graphics - Tutorials
Date: 2007-Mar-15
Networking, Programming and Graphics - Tutorials
Visited: 66071 times
Networking, Programming and Graphics - Tutorials
Rating: Networking, Programming and Graphics - Tutorials
Networking, Programming and Graphics - Tutorials
Author: Tony Potter

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

Change Windows remote desktop port number
Expand the registry folders to:

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

Then locate the following registry subkey :

PortNumber

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

Change Windows remote desktop port number
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

Rate this tutorial:                    
Post Comment

Need a specific tutorial? Do not hesitate and submit a request!
Your e-mail: