By default, Remote Desktop Connection (RDP) uses port 3389. we can change this default settings for security reasons.

* Login to the server via RDP(Remote Desktop Connection).
* Open the port you wish to use for RDP connection in firewall.

Code: [Select]
* Click on “Start”>>Go To “Control Panel”>>Click on “Windows Firewall”
* Click on “Exceptions” tab .
* Click on “Add Port”.
* Specify the required details like Name, Port Number and choose TCP.

* Open Registry Editor.
Code: [Select]
Click on “Start”>>Go To “Run”>>Type “regedit” (without quotes) and click OK.
* Locate and then click the following registry subkey:
Code: [Select]
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\TerminalServer\WinStations\RDP-Tcp\PortNumber
* On the Edit menu, click Modify, and then click Decimal.
* Type the new port number, and then click OK.
* Exit from Registry Editor.
* Restart the server to make the changes in effect.
* Verify connectivity to the new port using telnet.
Bu cevap yeterince yardımcı oldu mu? 30 Bu dökümanı faydalı bulan kullanıcılar: (75 Oy)