By default, Windows VPS uses port 3389 for Remote Desktop Protocol (RDP).
The problem?
π¨ Port 3389 is the most scanned port on the internet.
Changing your RDP port significantly reduces automated attacks and login attempts.
In this guide, youβll learn:
Why you should change RDP port
How to change it safely
How to configure Windows Firewall
How to connect after changing
Troubleshooting tips
π Why Change the Default RDP Port?
Default RDP port: 3389
Bots scan this port 24/7.
Benefits of changing it:
β Reduces brute-force attacks
β Lowers event log spam
β Adds extra security layer
β Helps reduce support tickets
β Important: Changing port does NOT replace strong passwords.
π οΈ Step 1 β Change RDP Port in Windows Registry
You must modify the Windows Registry.
Press:
Type:
Navigate to:

Find:
PortNumber
Double click it.
Change Base to:
β Decimal
Enter new port number.
Example:
Click OK
Close Registry Editor.
π₯ Step 2 β Create Windows Firewall Rule
If you skip this step, you will lock yourself out.
Open:
This opens Windows Defender Firewall with Advanced Security.

Create New Rule
Click Inbound Rules
Click New Rule
Select Port
Choose TCP
Enter your new port (example 55900)
Allow the connection
Apply to Domain, Private, Public
Name it:
Click Finish.
π Step 3 β Restart VPS
Restart your VPS from:
Windows Start Menu
ORYour hosting control panel
After reboot, RDP will run on new port.
π₯οΈ How to Connect Using New Port
In Remote Desktop:
Instead of entering:
Enter:
Example:
Click Connect.
Done β
π Extra Security (Highly Recommended)
If you’re managing VPS infrastructure like you MVP, combine port change with:
β Enable Network Level Authentication
β Disable Administrator username
β Create new admin account
β Enable account lockout policy
β Block port 3389 entirely in firewall
β Enable brute force monitoring
β Troubleshooting
Locked Out After Changing Port?
Most common cause:
You forgot to create firewall rule.
Fix:
Use:
Hyper-V console
Proxmox console
VPS web console
Then create firewall rule properly.
Port Still Showing 3389?
Run:
Check active port.
If still 3389:
Restart VPS again.
How to Completely Disable 3389?
In Firewall:
Create outbound rule:
Block TCP 3389
π Best RDP Port Numbers to Use
Avoid common ports like:
8080
8443
2222
21
25
Choose random high port:
Example:
β FAQ Section
Is changing RDP port enough for security?
No. It reduces scanning but strong passwords + firewall are mandatory.
Can I change RDP port without registry?
No. It requires registry modification.
Does changing RDP port affect performance?
No.
