Operations 3 min read

How to View and Change Windows Remote Desktop Port (3389 → 3388)

This guide explains why the default Windows Remote Desktop port 3389 may be changed for security, and provides step‑by‑step instructions—including command‑line queries to locate the TermService PID, using netstat to view the current port, and editing the registry to set a new port such as 3388, followed by a restart and connection test.

Open Source Linux
Open Source Linux
Open Source Linux
How to View and Change Windows Remote Desktop Port (3389 → 3388)

Overview

The default port for Windows Remote Desktop is 3389. For security reasons, many users want to change this default port to reduce the risk of malicious attacks and port scans.

1 View Windows Remote Desktop Port

Step 1: Find the TermService process PID

Open the command prompt (Start → Run → cmd) and run: tasklist /svc | find "Ter" If the PID is not displayed, ensure you run the command with appropriate permissions.

Then locate the PID in the output (e.g., 13388).

Step 2: Find the port used by the Remote Desktop service netstat -ano | find "13388" The output shows the listening port; in the example it is the default 3389.

2 Modify Windows Remote Desktop Port

Step 1: Open the Registry Editor

Start → Run → regedit and press Enter.

Step 2: Change the port number in the registry

Navigate to:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\TerminalServer\Wds\rdpwd\Tds\tcp

Double‑click PortNumber, switch from hexadecimal to decimal, and set the value to 3388.

Also modify the second location:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\TerminalServer\WinStations\RDP‑Tcp

Again double‑click PortNumber, change to decimal, and set 3388.

Step 3: Restart the computer

The changes take effect after a reboot.

Step 4: Test the remote connection

Connect using the IP address followed by the new port, e.g., 192.168.1.10:3388. Verify that the remote desktop reports the port has been changed to 3388.

Original Source

Signed-in readers can open the original source through BestHub's protected redirect.

Sign in to view source
Republication Notice

This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactadmin@besthub.devand we will review it promptly.

SecurityWindowsRemote DesktopRegistryPort Change
Open Source Linux
Written by

Open Source Linux

Focused on sharing Linux/Unix content, covering fundamentals, system development, network programming, automation/operations, cloud computing, and related professional knowledge.

0 followers
Reader feedback

How this landed with the community

Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.