How to change RDP port

Categories Windows

It is important to change the RDP port after purchasing the server because of security issues.

The default port of the VPS/admin-access RDP is 3389.

Now we want to change the RDP port of the server.

1- According to the below image, in order to enter to the registry setting, you should press Windows key R  and type regedit command then click on OK button.

Run - RDP

2- According to the below image, click on HKEY_LOCAL_MACHINE.

Registry Editor - RDP

3- According to the below image, click on SYSTEM, CurrentControlSet, and Control.

Registry Editor - RDP

4- According to the below image, click on Terminal Server, WinStations and RDP-Tcp.

Registry Editor - RDP

5- According to the below image, after choosing RDP-Tcp, in the right side of the page, find PortNumber and click on it.

Registry Editor - RDP

6- According to the below image, write your mentioned port (we use 8787 in this post) in Value data section, change the Base option to Decimal and click on OK.

Edit DWORD (32-bit) Value - RDP

7- You have successfully changed the port, now you should add the port to the firewall of the windows.

According to the below image, press Windows key R  and type Control Panel command then click on OK button.

Run - RDP

8- According to the below image, choose Advanced Setting option.

Windows Firewall - RDP

9- According to the below image, choose Inbounded Rule option and then click on New Rule…

Windows Firewall With Advanced Ssecurity - RDP

10- According to the below image, fill the Port button and click on Next.

New Inbound Rule Wizard - RDP

11- According to the below image, in Specific Local Ports write your mentioned port (we use 8787 in this post) and click on Next.

New Inbound Rule Wizard - RDP

12- According to the below image, fill the Allow The Connections button and click on on Next.

New Inbound Rule Wizard - RDP

13- According to the below image, fill all the boxes and click on on Next.

New Inbound Rule Wizard - RDP

14- According to the below image, write the name of the port and click on Finish.

New Inbound Rule Wizard - RDP

Now you should restart the server.

15- After restarting the server, you can connect to the server with the new port that you have set on the server.

The format should be like this: YourIP:NewPort

Remote Desktop Connection - RDP

His name is Marcus,
He lives in the future.

1 thought on “How to change RDP port

Leave a Reply

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