

If Windows Firewall is enabled on your computer, you will have to create a new rule that allows inbound connection to your new RDP port.You can change the registry parameter using PowerShell: Set-ItemProperty -Path "HKLM:\System\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp\" -Name PortNumber -Value 1350 I have changed the RDP port to 1350 (Decimal) This parameter shows the port, on which the Remote Desktop service is listening Find the DWORD parameter with the name PortNumber.


Open the Registry Editor and go to the registry key HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp.Let’s try to change the port of Remote Desktop service to 1350. When choosing a non-standard RDP port, please note that it is not recommended to use port 1-1023 (known ports) and dynamic RPC port range 49152-65535. You can configure a unique RDP port on each computer and configure port forwarding (PAT) to local computers on your router (depending on the RDP port number, the remote session is forwarded to one of the internal computers). You can change the default RDP port when a router with one white IP address is used by multiple computers running Windows to which you need to provide external RDP access. By changing the RDP port number, you can hide your RDP server from port scanners, reduce the possibility of exploiting RDP vulnerabilities (the last known vulnerability in RDP BlueKeep is described in CVE-2019-0708), reduce the number of RDP brute force attacks (don’t forget to regularly analyze RDP connection logs), SYN and other attacks (especially, when NLA is disabled). g., a VDS/VPS server) or you have configured port forwarding of 3389/RDP port on your edge router to a Windows computer (server) in the local network, you can change the default 3389/RDP port to any other. If your computer is connected to the Internet directly (e. In all Windows operation systems the default port assigned to RDP (Remote Desktop Protocol) is TCP 3389.
