How to change default RDP port on Windows Server

RDP(Remote Desktop Protocol) is a protocol that allows you to connect to a Windows machine remotely. The default port set for RDP is 3389. We can change that default port of your Windows server as a part of increasing the security. You can watch the video tutorial for this by clicking here. The steps are provided below:

  1. Search for 'Regedit' in the windows search area and click on the 'Regedit' button.



  2. Navigate the options to the following Registry Key:
    HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\TerminalServer\WinStations\RDP-Tcp\PortNumber





  3. Right-Click or double click on the PortNumber option and you will get a box to edit the values. Change the selection to 'Decimal' and set your custom port there. 



  4. Once done, click on and you can close the 'Regedit' window.
  5. Then we need to allow the custom port in the Windows Firewall if the firewall is active on your server.
  6. Open the windows firewall option from search and click on 'Inbound Rules' and then click on 'New Rule' at the right side of the page.



  7. Select the rule type as 'Port' and click next.



  8. You can see the 'Specific Local Port' option and you need to provide your custom port there and click next.



  9. Just press the 'Next' option for the next 2 steps and in the final step, you can provide a rule name and press 'Finish'.



  10. You are done with the changes and you have to restart the server to get those changes to take effect. 
  11. Next time, you need to specify the port with your IP address like 192.168.1.3:2314 when accessing RDP.

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

How To Install and Use Docker on Ubuntu 16.04

Introduction Docker is an application that makes it simple and easy to run application processes...

Change Main IP of the server :: Vesta Panel

If we are changing the main IP of a server installed with Vesta panel, we can use the following...

cPanel: Apache-FastCGI Data Timeout Error

If you are using a cPanel server and have FastCGI enabled in Apache, you might be facing the...

Domainkey installer in cPanel

You can use the following cPanel script to install domainkey for an account...

Email issues :: Common Troubleshooting Steps

Here I will discuss some common errors and their solution: We are using a mail relay setup for...