Skip to content
Bots!
Bots!
  • About
    • Myself
    • আমার দোয়া
  • Bookmarks
    • Bookmarks
    • My OCI Bookmarks
    • Useful Proxmox Commands & Links
    • Learning Nano
    • Useful Sites
    • Useful Virtualbox Command
    • Useful MySQL Command
    • Useful Linux Command
    • BTT-CAS
  • Resources
    • Webinar on Cloud Adoption for Project Managers
  • Photos
  • Videos
  • Downloads
Bots!

Change Windwos RDP default port 3389

Rumi, February 15, 2024

Reference is on Windows 10 (should work on other editions too)

Step 1: Open the Registry Editor

Run the regedit command. You may do this by opening the Start Menu and typing “regedit” into the search bar. Select the option labeled “regedit” with the words “Run command” below it.

(Note: The search bar in Windows 10 is not visible when the menu is first opened. To access the search bar, just start typing with the Start Menu open.)

Alternatively, press the Windows Key + R. This will open the Run dialog box. Type “regedit” into the input bar labeled “Open:” and press “OK”.

Accept any prompts asking to allow the Registry Editor to make changes to your device.

Step 2: Navigate to the Proper Folder

The Registry Editor will now open on your computer. Navigate to the folder where the port number is stored by entering the the following path in the navigation bar at the top of the window:

Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp

Once in the folder, locate the field named “PortNumber”.

Step 3: Enter a New Port Number

Right-click on the word “PortNumber” and select “Modify” from the menu that appears.

Select the radio button labeled “Decimal” to view the port number value in the decimal number system. Change the value in the “Value data:” bar to the new port number you will use for Remote Desktop.

Do not use the default port 3389.

(Note: Port numbers range from 0 to 65535, though many ports between 0 and 999 are reserved for well-known services. Before changing your port number, check online that the port number you are changing it to is not a reserved port.)

Click “OK” when finished.

The new port number should be visible in the “Data” section of the PortNumber field, written in the hexidecimal numbering system followed by the decimal number system equivalent in parenthesis. In the image below, the hexidecimal value is underlined in red, while the decimal value is underlined in green. Check that the decimal value is the port number you desired.

Step 4: Close Registry Editor and Restart

Quit the Registry Editor by clicking the red ‘X’ in the top right corner of the window. Restart your computer to solidify the changes.

Step 5: Add an Inbound Rule in Windows Defender Firewall

Open the Control Panel. You may do this by opening the Start Menu and typing “control panel” into the search bar. Select the option labeled “Control Panel” with the words “Desktop app” below it.

(Note: The search bar in Windows 10 is not visible when the menu is first opened. To access the search bar, just start typing with the Start Menu open.)

When the Control Panel has opened, locate the search bar in the top right corner and enter “firewall”.

Select “Windows Defender Firewall” from the search results.

Select “Advanced settings” from the side menu.

In the pop-up window, select “Inbound Rules” from the left menu, then choose “New Rule…” from the right menu.

In the Rule Wizard that appears, choose to create a “Port” rule before hitting “Next >”.

On the next screen, choose “TCP” from the list of protocols. Select “Specific local ports:” and input the new port number that you entered in Step 3.

Again, do not use the default port 3389.
Hit “Next >” to continue to the next screen.

Select “Allow the connection” from the list and hit “Next >”.

Apply this rule to all options by checking off all boxes (“Domain”, “Private”, and “Public”) and hitting “Next >”.

Name your rule with an informative title before hitting “Finish”.

Your new rule should appear at the top of the list with the name you assigned it.

Connecting with the New Port

Run Remote Desktop Connection. You may do this by opening the Start Menu and typing “rdp” into the search bar. Select the option labeled “Remote Desktop Connection” with the words “Desktop app” below it.

(Note: The search bar in Windows 10 is not visible when the menu is first opened. To access the search bar, just start typing with the Start Menu open.)

In the window that appears, enter the full hostname of the system being accessed, followed by a colon (:) and the new port number that you entered in Step 3. Hit “Connect” to finish.

(Note: Do not include spaces. A full hostname includes the domain names, ex: hostname.domain.domain.domain )

Ref: https://www.soest.hawaii.edu/rcf/guides/RDP.htm

Administrations Collected Articles Configurations (Windows) RDPWindows 10

Post navigation

Previous post
Next post

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Myself…

Hi, I am Hasan T. Emdad Rumi, an IT Project Manager & Consultant, Virtualization & Cloud Savvyfrom Dhaka, Bangladesh. I have prior experience in managing numerous local and international projects in the area of Telco VAS & NMC, National Data Center & PKI Naitonal Root and CA Infrastructure. Also engaged with several Offshore Software Development Team.

Worked with Orascom Telecom-Banglalink, Network Elites as VAS partner, BTRC, BTT (Turkey) , Mango Teleservices Limited and Access to Informaiton (A2I-UNDP)

Currently working at Oracle Corporation as Principal Technology Solution and Cloud Architect.

You can reach me [h.t.emdad at gmail.com] and I will be delighted to exchange my views.

Tags

Apache Bind Cacti CentOS CentOS 6 CentOS 7 Debain Debian Debian 10 Debian 11 Debian 12 DKIM Docker endian icinga iptables Jitsi LAMP Letsencrypt Linux Munin MySQL Nagios Nextcloud NFS nginx pfsense php Postfix powerdns Proxmox RDP squid SSH SSL Ubuntu Ubuntu 16 Ubuntu 18 Ubuntu 20 Varnish virtualbox vpn Webmin XCP-NG zimbra

Topics

Recent Posts

  • Install Jitsi on Ubuntu 22.04 / 22.10 April 30, 2025
  • Key Lessons in life April 26, 2025
  • Create Proxmox Backup Server (PBS) on Debian 12 April 19, 2025
  • Add Physical Drive in Proxmox VM Guest April 19, 2025
  • Mount a drive permanently with fstab in Linux April 16, 2025
  • Proxmox 1:1 NAT routing March 30, 2025
  • Installation steps of WSL – Windows Subsystem for Linux March 8, 2025
  • Enabling Nested Virtualization In Proxmox March 8, 2025
  • How to Modify/Change console/SSH login banner for Proxmox Virtual Environment (Proxmox VE / PVE) March 3, 2025
  • Install Proxmox Backup Server on Debian 12 February 12, 2025

Archives

Top Posts & Pages

  • Install Jitsi on Ubuntu 22.04 / 22.10
©2025 Bots! | WordPress Theme by SuperbThemes