Skip to content Skip to sidebar Skip to footer

How to change the original PORT 3389 to RDP

How to change the original PORT 3389 to RDP

RDP generally runs on port 3389. The client application usually recognizes this immediately upon writing to the server host and immediately forwards the user to the authentication process. But the port on RDP can actually be replaced, just like in VNC.

If you change the port, your RDP will be activated stay safe because it is no longer recognized on the original port. In addition to security, port changes can also be made if the network you are using is blocking port access to the 3389.

Changing the port to RDP is not difficult, you just need to set a few things in the Windows registry. But if you do this on a Windows server activated by some kind of VPS, for example Google Cloud, Azure blue, or others, you also have to set the firewall port to “Open”.

Tutorial changing the RDP port

It only takes 2 steps in total to change the port to RDP. The first is to redirect ports from the Windows registry and the second is to add a firewall to Windows so that the desired port can be opened.

Not much more, here are the steps you need to follow to change the port in Windows RDP:

1. Change the port in the Windows registry

  1. Click button WIN+R and type in regedit, then ENTER.

    Go to the Windows registry

  2. Then go to the following directory:

    HKEY_LOCAL_MACHINE System CurrentControlSet Control Terminal Server WinStations RDP-Tcp

    Go to the directory to change the RDP port

  3. Then double click Port number.

    The process of changing the original RDP port

  4. Next, choose the option Decimal and please change port 3389 to the new port you want.

    How to change the RDP port

After following the steps above, Windows Server is basically running directly on this port Boots next. However, this is a problem if the firewall in Windows is not set for this port. Therefore, it is highly recommended to open the new port so that it can be accessed later. To do this, please follow step 2.

2. Open a new port in the Windows Firewall

Please open Powershell as administrator and enter the following command to open a new port.

netsh advfirewall firewall add rule name="Open Port 3113" dir=in action=allow protocol=TCP localport= 3113

For the example above, I’ll change the original RDP port to 3113, so please change the port according to what you are using. And when you are done running this command, you can restart RDP.

Also read: How to Create Windows RDP in Google Cloud

Run RDP with new port

After you have successfully changed the port, you can now enter the client application and write the RDP host along with the new port. For example, write the host like this:

192.100.123.123:3113

If successful, you will surely see authentication options.

But if it’s not connected, then most likely you’re using it right now VPS servicewhere it is necessary to open the port in the firewall settings provided there. So please open a new port (TCP & UDP) in the firewall settings on the VPS, and later RDP can be run on the new port.

If anyone has any questions about the tutorial above, feel free to comment in the column provided.

Hopefully useful and good luck