Change the listening port for Remote Desktop on your computer
Remote desktop protocol (RDP) is administrative console access and it may be necessary to make it even more secure to change a rdp port.
RDP transports on TCP 3389 by default for all supported versions of Windows; if you want to change the port, it requires a quick change in the Windows registry.
Step 1: open regedit
Start Registry Editor by clicking on Start -> Run, and type in regedit in the Run text box, and then press Enter or click OK.
Step 2:Navigate to the following registry branch/subkey:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp
Step 3:Port change
Locate the registry entry PortNumber in the right pane.
Right click on PortNumber and choose Modify (or select PortNumber, then click on Edit menu and select Modify).
Then select decimal enter open port click ok when save change port number
It may require to check enter IP address last add :3392 click connect . before check the current port by running on which port enter following command in PowerShell :
Get-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp' -name "PortNumber"
See the this You can also change the RDP port by running the following PowerShell command. In this command, we’ll specify the new RDP port as 3392