Tutorial Change RDP Port on Windows

Tutorial Change RDP Port on Windows

Changing the remote desktop port is one of the network security considerations. You may be wondering how we can secure our network from hackers. The most common activity of hackers is to check open network ports and attack them. To be safe from these attacks, it is strongly recommended that the network ports be taken out of default and the default port changed. Remote Desktop Protocol (RDP) is one of the most important services using in most companies and organizations today for telecommuting and remote network management. In this article, we are going to teach you about Tutorial Change RDP Port on Windows. If you want to get a Buy RDP server, you can see the packages available in Eldernode.

How to Change RDP Port on Windows

In order to increase the security factor in Windows servers, the server administrator changes the remote desktop port from the default mode (port 3389). To change the port, you must first activate the port in the firewall. Note that the selected port must be between 1025 and 65535. In the next section, join us to teach you to step by step how to Change RDP Port on Windows.

Recommended Article: How to clear the browser cache

Why change RDP Port?

Normally, the RDP service uses the TCP 3389 port. By activating this default mode, hackers can easily infiltrate your network. To change the remote desktop port, you can change this port to the amount you need for security reasons and protect your organization’s network or internal servers against external and internal attacks. By doing this, you can easily prevent hackers from infiltrating.

So the most important reason to change the port to another number is that if your IP is scanned by hackers to check the remote desktop access, port 3389 will be disabled and your server will be hidden from view. In the next section, we will teach you how to Change RDP Port on Windows.

Change RDP Port on Windows 10, 2012, 2016, 2019

In the first step, select Run from the Start menu.


search run


Then in the Run window, type Regedit and then click OK.


registry setting


Now in the window that opens, go to the following path:





In the next step, right-click on the file and select Modify. Then enter the Decimal option and the new Port number.


how to change port 3389 to anoder one on windows




Note: In order to be able to connect successfully, you must enter the desired port as follows:


Now we need to go to the firewall settings. Open the Windows Firewall with Advanced Security to open the port in the firewall. To do this, use the Windows search feature or enter from the path below:

Start >> Control Panel >> System and Security >> Windows Firewall

To add a port, click Inbound Rules and click New Rule in the left column.


RDP port setting on firewall


Follow the steps as shown below:


how to set RDP port on firewall


how to change rdp port on firewall


Enter the desired description and click Finish.


change default rdp port on firewall


Recommended Article: How to Use Chocolatey Package Manager on Windows


Due to the fact that hackers search for default ports when attacking servers or destination systems, measures should be taken to prevent this. One of the most practical and basic methods is to change the default RDP port. In this article, we tried to teach you to step by step how to Change RDP Port on Windows. You can refer to the article How to secure Linux VPS if you wish.

How useful was this post?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate this post.

We Are Waiting for your valuable comments and you can be sure that it will be answered in the shortest possible time.

Leave a Reply

Your email address will not be published. Required fields are marked *

We are by your side every step of the way

Think about developing your online business; We will protect it compassionately

We are by your side every step of the way


7 days a week, 24 hours a day