Cách đổi port Remote Desktop

Bước 1: Mở Registry Editor

  1. Nhấn Win + R → gõ regedit → Enter.
  2. Vào đường dẫn: HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp
  3. Ở bên phải, tìm giá trị PortNumber.

Bước 2: Chỉnh port

  1. Double-click vào PortNumber.
  2. Chọn Decimal để dễ nhập.
  3. Nhập số port bạn muốn (ví dụ 3390).
  4. Bấm OK và đóng Registry Editor.

Bước 3: Mở port trên Windows Firewall

  1. Vào Control Panel → Windows Defender Firewall → Advanced settings.
  2. Chọn Inbound Rules → New Rule.
  3. Chọn Port → Next.
  4. Nhập port mới (ví dụ 3390) → Next.
  5. Chọn Allow the connection → Next → đặt tên rule → Finish.

Bước 4: Restart dịch vụ hoặc máy

  • Mở Services.msc, tìm Remote Desktop Services → Restart.
  • Hoặc restart máy cho chắc.

Bước 5: Kết nối bằng port mới

Khi remote, nhập theo cú pháp:

mstsc
Computer: <IP hoặc hostname>:<port>

Ví dụ:

192.168.1.100:3390

Để lại một bình luận

Email của bạn sẽ không được hiển thị công khai. Các trường bắt buộc được đánh dấu *