How To Connect RDP With Different Port

Published March 16, 2022

Connect RDP

In this tutorial, we will learn “How To Connect RDP With Different Port”. RDP stands for “Remote Desktop Protocol” and is a proprietary network protocol from Microsoft for remote access to your Windows computer. You can use this to display and control the screen content, for example. The port is not open by default on every system and may be blocked by the Windows firewall. We will explain how to allow remote access privately and publicly, how to change the port and how to check if the RDP port is open.

 

How To Connect RDP With Different Port.

  1. First Open Registry Editor.
  2. Go to the Search Bar and type Regedit.
  3. Now press Enter, it will open Registry Editor Console.
  4. Now Go to :HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp
  5. Find the DWORD parameter with the name PortNumber.
  6. This parameter shows the port, on which the Remote Desktop service is listening.
  7. As we know The default is Port 3389 (decimal). Let’s Change it.
  8. Click Edit > Modify, and then click Decimal.
  9. Change the value of this parameter. I have changed the RDP port to 9978 (Decimal).
  10. Now click the OK Button and Close the registry editor.

If you’re using a firewall, you will have to create a new rule that allows inbound connection to your new RDP port. You can create an allowing inbound rule for your new TCP/UDP RDP port manually in the Windows Defender Firewall console or using PowerShell cmdlets. Let’s do this through Powershell.

  1. First, open Powershell as an Administrator.
  2. In the Search bar, type “Windows PowerShell.”
  3. Next, right-click the Windows PowerShell app in the search results.
  4. Let’s Click “Run as Administrator”.
  5. It will open Powershell Console as administrator.
  6. Now Paste this Command to Create Inbound TCP Rule – New-NetFirewallRule -DisplayName “NewRDPPort-TCP-In” -Direction Inbound -LocalPort 9978 -Protocol TCP -Action allow
  7. Now Paste this Command to Create Inbound UDP Rule – New-NetFirewallRule -DisplayName “NewRDPPort-UDP-In” -Direction Inbound -LocalPort 9978 -Protocol UDP -Action allow
  8. Close the Powershell, and restart your computer.
  9. That’s It. Now you can connect RDP through the new port.

Plan #1

$79.99

Per Month


    Dual Xeon® E5-2670


    8 Core @2.60Ghz       Speed


    32 GB (DDR4) RAM


    1 TB HDD Storage


    15 TB Bandwidth

Plan #2

$129.99

Per Month


    Xeon® E5-2630L v3


    16C/32T @2.40Ghz CPU Speed


    64 GB (DDR4) RAM


    1.6 TB SSD Storage


    10 TB Bandwidth

Plan #3

$149.99

Per Month


    Xeon® E5-2670


    16C/32T @3.60Ghz CPU Speed


    96 GB (DDR4) RAM


    480GB SSD, 2 TB HDD Storage


    15 TB Bandwidth

Plan #4

$219.99

Per Month


    Xeon® E5-2630L v3


    16C/32T @2.60Ghz CPU Speed


    256 GB (DDR4) RAM


    4x 960GB SSD Storage


    20 TB Bandwidth

Plan #5

$499.99

Per Month


     Xeon® E5-2683 v4


    32C/64T @2.10Ghz       Speed


    512 GB (DDR4) RAM


    4x 1.92TB  SDD Storage


    25 TB Bandwidth