RDP Change - Manually
How do I change my RDP port? This is a guide on how to change the remote desktop port in your windows server.
Last updated
How do I change my RDP port? This is a guide on how to change the remote desktop port in your windows server.
Last updated
Why should I change the RDP port on my server? The default RDP port of all Windows Servers is 3389, bad people know of this number so they will try to brute force the login information of the machine. Sometimes setting a strong password just isn't enough. Changing the RDP port and banning IPs that try to brute force using our tool helps a great amount. Read more about this here.
Do this on your server, not on your home computer.
IF YOU USE THE ZESTY TOOL, YOU WON'T NEED TO FOLLOW THE STEPS BELOW
Pick a port you want for your new RDP (default is 3389, you don't want this). You may use any port from 1-65535. This excludes ports 20, 22, 25, 80, 345, 443. Use a random 5 digit number you can memorize or generate a random port and memorize/save it: https://bit.ly/customport5 We recommend any 5 digit port.
We will need to unblock the port you choose first so let's get started, open up Windows Firewall with Advanced Security and click "New Rule..." on the right hand side.
Leave the port as a TCP Port and the input the specified local port as the port you want to use for your RDP connections. We've chosen 3385 in this example.
Make sure you tick Allow the connection for this step and then make sure all check boxes are checked for the next step.
When naming, you want to choose something easy to remember just in case you ever want to change the RDP port.
Now we're going to actually change the RDP port inside of the registry editor.
Start Registry Editor.
Locate and then click the following registry subkey: HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp\PortNumber You want to navigate your way through regedit until you have the file RDP-Tcp selected, then you will be able to scroll down and find PortNumber on the right hand side.
On the Edit menu, click Modify, and then click Decimal. Make sure you click Decimal BEFORE you change the value. We cannot stress this enough, change the option to Decimal, VERY IMPORTANT!
Type the new port number, and then click OK. Save the port somewhere safe so you don't forget it.
Restart/reboot the computer and you're good to go.
Please note when you're connecting to RDP with a new port, you will need to enter the port while connecting.