# How to change RDP port on Windows

For security reasons, it is necessary to change default service ports to non-standard ports (e.g., changing RDP from 3389 to 23389).

## Instruction:

### **1.** Create a snapshot of the instance

Go to your instance, select **Take Snapshot**, and then click **Confirm**.

&#x20;![](https://t9003005656.p.clickup-attachments.com/t9003005656/2060f1b6-dbb0-488e-a975-6ec68095edda/Untitled-1.png)

![](https://t9003005656.p.clickup-attachments.com/t9003005656/333c6d27-f313-40b8-899a-0ca78f396ec9/Untitled-2.png)

### **2. Open the Registry Editor**

Open the "Run" dialog (Windows Key + R), type regedit, and click **OK**.

![](https://t9003005656.p.clickup-attachments.com/t9003005656/d424033e-1b0a-4f43-8bde-86e973418561/image.png)

### **3. Navigate to the RDP-Tcp key**

In the Registry Editor, navigate to the following path:\
\HKEY\_LOCAL\_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp

![](https://t9003005656.p.clickup-attachments.com/t9003005656/eee5b3d9-0fd8-4f96-8d4c-c81a1733bf97/image.png)&#x20;

### **4.  Modify the PortNumber value**

In the right-hand pane, right-click on **PortNumber** and select **Modify**.

![](https://t9003005656.p.clickup-attachments.com/t9003005656/29ee087a-39ee-42b0-8979-01863932a616/image.png)

### **5. Set the new port number**

* Select the **Decimal** base.
* Enter your desired new port number. The port number should be four digits or more and must not conflict with other service ports.
* In this example, the port is set to 43389.
* Click **OK** when you are done.

&#x20;![](https://t9003005656.p.clickup-attachments.com/t9003005656/abcd0f32-347b-4475-9a07-f956a62486e5/image.png) &#x20;

### 6. Close all windows and restart the computer.
