How to change the RDP port of a Windows Server

When establishing a connection to a remote computer, whether it’s a Windows client or Windows Server, via Remote Desktop, your computer’s Remote Desktop feature detects the connection through a designated listening port (commonly 3389). To customize this listening port on Windows systems, you can make adjustments in the registry settings. In this guide, we will explore the process of modifying the RDP port of the Windows Server

Follow these easy step to Install CyberPanel

To change the Remote Desktop Protocol (RDP) port on Windows Server 2019 and configure the necessary firewall settings, follow these steps:

Change RDP Port:

a. Sign in to the Windows Server 2019 machine using an account with administrative privileges.

b. Open the “Registry Editor” by pressing the Windows key + R, typing “regedit” (without quotes), and pressing Enter.

c. In the Registry Editor, navigate to the following path:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp

d. Locate the “PortNumber” entry on the right-hand side. This entry holds the current RDP port value.

e. Double-click on the “PortNumber” entry to modify its value.

f. Select the “Decimal” base and enter the desired port number. Choose an unused and available port number. For example, you can use 3390.

g. Click “OK” to save the changes.

h. Close the Registry Editor.

i. Restart the Windows Server for the changes to take effect.

Firewall Configuration:

a. Open the Windows Firewall with Advanced Security. You can search for it in the Start menu or access it through the Control Panel.

b. In the Windows Firewall with Advanced Security window, click on “Inbound Rules” in the left-hand pane.

c. Locate the “Remote Desktop (TCP-In)” rule in the Inbound Rules list and double-click on it to open its properties.

d. In the Properties window, go to the “General” tab.

e. Change the “Local port” field to match the new RDP port number you set in the registry (e.g., 3390).

f. Click “OK” to save the changes.

g. Repeat the above steps for any other rules related to RDP, such as “Remote Desktop – User Mode (TCP-In)” if present.

h. Close the Windows Firewall with Advanced Security.

i. If you have any other firewalls or network security devices (e.g., hardware firewall, antivirus firewall), make sure to update their configurations to allow incoming connections on the new RDP port (e.g., 3390).

After making these changes, you should be able to connect to the Windows Server 2019 using Remote Desktop by specifying the new port number in the RDP client. For example, if the new port is set to 3390, you would connect to the server using “your-server-ip:3390” instead of the default port 3389.

Make sure to update any firewall or security configurations in your network environment to allow incoming connections on the new RDP port for successful remote access.

Conclusion

In this tutorial, we tried to change the RDP port of a Windows Server. Hope your all queries are resolved with our tutorial guide. If you have any issues related to the installation or if you have any questions, feel free to reach out through the comment section.


Mega Discount Sale!!!

Get a Dedicated Server or VPS Server with a 40% discount


Leave a Comment

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

Scroll to Top