> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://help.tradingvps.io/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# How to setup RDP custom port and configure firewall

| Changing the default Remote Desktop Protocol (RDP) port can enhance security by making it more difficult for unauthorized users to locate and attempt attacks on your system. However, it’s important to remember that this is just one layer of security and should be used in conjunction with other measures, especially a strong password.


### Choose a New Port Number


|| Avoid Common Ports: Avoid well-known ports (0-1023) and registered ports (***1024-49151***). Choose a port in the dynamic/private range (***49152-65535***) to reduce the likelihood of conflicts.


### Configuring the remote port

1. Start the registry editor. (Type regedit in the Search box.)


![](https://storage.crisp.chat/users/helpdesk/website/-/5/4/1/3/5413a8a0321f3000/image_1sj1ah9.png)

2. Navigate to the following registry subkey:


```
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp
```


3. Find ***PortNumber***


![](https://storage.crisp.chat/users/helpdesk/website/-/5/4/1/3/5413a8a0321f3000/image_sbsqja.png)

![](https://storage.crisp.chat/users/helpdesk/website/-/5/4/1/3/5413a8a0321f3000/image_1dy8tl8.png)

![](https://storage.crisp.chat/users/helpdesk/website/-/5/4/1/3/5413a8a0321f3000/image_132kia7.png)

![](https://storage.crisp.chat/users/helpdesk/website/-/5/4/1/3/5413a8a0321f3000/image_oua0fo.png)

![](https://storage.crisp.chat/users/helpdesk/website/-/5/4/1/3/5413a8a0321f3000/image_1y30lfy.png)

![](https://storage.crisp.chat/users/helpdesk/website/-/5/4/1/3/5413a8a0321f3000/image_az6elv.png)

![](https://storage.crisp.chat/users/helpdesk/website/-/5/4/1/3/5413a8a0321f3000/image_poepdl.png)

![](https://storage.crisp.chat/users/helpdesk/website/-/5/4/1/3/5413a8a0321f3000/image_atykfb.png)

4. Click ***Edit > Modify***, and then click ***Decimal***.

![](https://storage.crisp.chat/users/helpdesk/website/-/5/4/1/3/5413a8a0321f3000/image_1207j4s.png)

5. Type the new port number, and then click ***OK***.

![](https://storage.crisp.chat/users/helpdesk/website/-/5/4/1/3/5413a8a0321f3000/image_vjfdzo.png)

6. Close the registry editor,