Skip to content

TechDirectArchive

Hands-on IT, Cloud, Security & DevOps Insights

  • Home
  • About
  • Advertise With US
  • Reviews
  • Contact
  • Toggle search form
Home » Windows » How to change the default RDP port in Windows
  • How to stay protected on Windows 10 and11 device with Windows Security
    Stay protected on Windows device with Windows Security Security | Vulnerability Scans and Assessment
  • Featured image 1
    How to Change User Account Type in Windows 10 Windows
  • Webp.net resizeimage 5
    How to Improve Website Response Using Traffic Manager AWS/Azure/OpenShift
  • screenshot 2020 05 11 at 15.03.02
    How to record the screen of macOS Mac
  • Perform an in place upgrade of Windows Server
    In-place upgrade of Windows Server 2022 to 2025 Backup
  • remote desktop version and protocol
    Determine the Remote Desktop Client Version Windows
  • HyperV VM disk size increase
    How to Increase Disk Size in Hyper-V Virtualization
  • squid proxy feature
    How to Set Up and Configure a Squid Proxy Server Linux

How to change the default RDP port in Windows

Posted on 27/08/202225/03/2024 Temitope Odemo By Temitope Odemo No Comments on How to change the default RDP port in Windows
rdp4

Remote Desktop Protocol is used by Windows users to connect remotely to another computer. By default, the RDP port is 3389 and sometimes you may want to change this port and assign another port for the RDP. In this article, we shall discuss how to change the default RDP port in Windows. If you want to read more on Remote Desktop Protocol you can check these: How to Resolve Microsoft RDP Connection Black Screen if the account is not authorized. Also, see how to fix “The connection was denied because the user account is not authorized for remote login: How to add and remove Remote Desktop Users“.

Here are some more guides you may be interested in: Remote Desktop cannot find the computer this in the specified network: Verify the computer name and domain that you are trying to connect. Here is a live demonstration on YouTube on how this can be done.

In this guide, we will be using the Registry Editor to make the changes to the RDP port. But you have to be very careful when you are using the Registry Editor because if not handled properly can cause permanent damage to the system.

But why do we want to change the Default RDP Port?

Everyone knows that Microsoft uses the standard port 3389 for all remote connections. This is to the bad actor’s advantage because they are always trying to access people’s systems without their knowledge. So changing this default port to another open port will make it much harder for an attacker to easily break into your system.

Please see Error 0x204: How to fix Remote Desktop Connection issues if you want to view or remove RDP History. See how to view Remote Desktop connection history or remove server connection entries from RDP.

Steps to change the Default Remote Desktop Port

To do this, please open the Registry Editor

image-16
Registry Editor

You can also run the regedit command. Also, see Copy Deployment Share between Servers without using linked Deployment Shares.

image-17
regedit

2. Browse to this key KEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp

image-18
Registry Editor

3. Click on the PortNumber and click Decimal option button. In the Value data field enter the new port number and click OK to save the changes. In this guide I will be changing 3389 to 3333.

image-19
Editing PortNumber

Please see How to remove saved RDP connections in Windows, How to fix Remote Desktop can’t connect to the remote computer for one of these reasons, and How to configure a console port password on Cisco Router / Switch Configuration.

Verify Port change via PowerShell

You can confirm if the port has actually been changed using this command on PowerShell.

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

Run it on Windows PowerShell and you will see the RDP Port has now changed to 3333

image-20
Windows PowerShell

Another thing you will need to do is to open the ports. This is because if you try to RDP using this port may not work at first until you open it.

And also How to allow saved credentials for RDP connection. And What to do when your Remote Desktop Licensing Manager Server Crashes.

I hope you found this blog post on how to change the default RDP port in Windows Interesting and helpful. In case you have any questions do not hesitate to ask in the comment section.

Rate this post

Thank you for reading this post. Kindly share it with others.

  • Click to share on X (Opens in new window) X
  • Click to share on Reddit (Opens in new window) Reddit
  • Click to share on LinkedIn (Opens in new window) LinkedIn
  • Click to share on Facebook (Opens in new window) Facebook
  • Click to share on Pinterest (Opens in new window) Pinterest
  • Click to share on Tumblr (Opens in new window) Tumblr
  • Click to share on Telegram (Opens in new window) Telegram
  • Click to share on WhatsApp (Opens in new window) WhatsApp
  • Click to share on Pocket (Opens in new window) Pocket
  • Click to share on Mastodon (Opens in new window) Mastodon
  • Click to share on Bluesky (Opens in new window) Bluesky
  • Click to share on Threads (Opens in new window) Threads
  • Click to share on Nextdoor (Opens in new window) Nextdoor
Network | Monitoring, Windows, Windows Server Tags:Hyper-V, hyperV, Microsoft Windows, RDP, Remote Access, Remote Desktop Protocol, RemoteConnection, Windows 10, Windows 11, Windows Server 2016

Post navigation

Previous Post: How to clear cache in Windows 11
Next Post: How to demote and remove a Domain Controller on Windows Servers

Related Posts

  • Screenshot 2020 05 19 at 18.54.21
    Unable to find File Explorer in the Group Policy Editor when resolving the security tab missing under properties Windows Server
  • Test your webcam and microphone before meeting
    How to Test Your Webcam And Microphone Before Meeting Windows
  • PSD1 Azure 2
    How to install PSD Hydration Kit for remote bare-metal deployment or via PXE boot Windows Server
  • install ssl certificate
    Configure SSL connection for WSUS Upstream and Downstream Servers Windows Server
  • google chrome logo 2
    Set Google as default: How to set a browser as default in Windows 10 Windows
  • Featured image Two Factor Authentication
    Change Two-Factor Authentication in Microsoft 365/Office 365 Network | Monitoring

More Related Articles

Screenshot 2020 05 19 at 18.54.21 Unable to find File Explorer in the Group Policy Editor when resolving the security tab missing under properties Windows Server
Test your webcam and microphone before meeting How to Test Your Webcam And Microphone Before Meeting Windows
PSD1 Azure 2 How to install PSD Hydration Kit for remote bare-metal deployment or via PXE boot Windows Server
install ssl certificate Configure SSL connection for WSUS Upstream and Downstream Servers Windows Server
google chrome logo 2 Set Google as default: How to set a browser as default in Windows 10 Windows
Featured image Two Factor Authentication Change Two-Factor Authentication in Microsoft 365/Office 365 Network | Monitoring

Leave a Reply Cancel reply

You must be logged in to post a comment.

Microsoft MVP

VEEAMLEGEND

vexpert-badge-stars-5

Virtual Background

GoogleNews

Categories

veeaam100

sysadmin top30a
 
  • How to stay protected on Windows 10 and11 device with Windows Security
    Stay protected on Windows device with Windows Security Security | Vulnerability Scans and Assessment
  • Featured image 1
    How to Change User Account Type in Windows 10 Windows
  • Webp.net resizeimage 5
    How to Improve Website Response Using Traffic Manager AWS/Azure/OpenShift
  • screenshot 2020 05 11 at 15.03.02
    How to record the screen of macOS Mac
  • Perform an in place upgrade of Windows Server
    In-place upgrade of Windows Server 2022 to 2025 Backup
  • remote desktop version and protocol
    Determine the Remote Desktop Client Version Windows
  • HyperV VM disk size increase
    How to Increase Disk Size in Hyper-V Virtualization
  • squid proxy feature
    How to Set Up and Configure a Squid Proxy Server Linux

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 1,841 other subscribers
  • RSS - Posts
  • RSS - Comments
  • About
  • Authors
  • Write for us
  • Advertise with us
  • General Terms and Conditions
  • Privacy policy
  • Feedly
  • Telegram
  • Youtube
  • Facebook
  • Instagram
  • LinkedIn
  • Tumblr
  • Pinterest
  • Twitter
  • mastodon

Tags

AWS Azure Bitlocker Microsoft Windows PowerShell WDS Windows 10 Windows 11 Windows Deployment Services Windows Server 2016

Copyright © 2025 TechDirectArchive

 

Loading Comments...
 

You must be logged in to post a comment.