Mặc định Remote Desktop sẽ connect vào cổng 3389 (default port). i

Để có thể thay đổi cổng này, chúng ta cần sửa như sau:

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

  1. Navigate to the following registry subkey: HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp
  2. Find PortNumber
  3. Click Edit > Modify, and then click Decimal.
  4. Type the new port number, and then click OK.
  5. Close the registry editor, and restart your computer

check the current port by running the following PowerShell command:

Get-ItemProperty -Path ‘HKLM:\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp’ -name “PortNumber”


Leave a Reply

Your email address will not be published.