Change the listening port in Remote Desktop (2024)

Applies to: Windows Server 2022, Windows 11, Windows 10, Windows Server 2019, Windows Server 2016

When you connect to a computer (either a Windows client or Windows Server) through the Remote Desktop client, the Remote Desktop feature on your computer "hears" the connection request through a defined listening port (3389 by default). You can change that listening port on Windows computers by modifying the registry.

  1. Start the registry editor. (Type regedit in the Search box.)
  2. Navigate to the following registry subkey:HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp
  3. Find PortNumber
  4. Click Edit > Modify, and then click Decimal.
  5. Type the new port number, and then click OK.
  6. Close the registry editor, and restart your computer.

The next time you connect to this computer by using the Remote Desktop connection, you must type the new port. If you're using a firewall, make sure to configure your firewall to permit connections to the new port number.

You can check the current port by running the following PowerShell command:

Get-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp' -name "PortNumber"

For example:

PortNumber : 3389PSPath : Microsoft.PowerShell.Core\Registry::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-TcpPSParentPath : Microsoft.PowerShell.Core\Registry::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStationsPSChildName : RDP-TcpPSDrive : HKLMPSProvider : Microsoft.PowerShell.Core\Registry

You can also change the RDP port by running the following PowerShell command. In this command, we'll specify the new RDP port as 3390.

To add a new RDP Port to the registry:

$portvalue = 3390Set-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp' -name "PortNumber" -Value $portvalue New-NetFirewallRule -DisplayName 'RDPPORTLatest-TCP-In' -Profile 'Public' -Direction Inbound -Action Allow -Protocol TCP -LocalPort $portvalue New-NetFirewallRule -DisplayName 'RDPPORTLatest-UDP-In' -Profile 'Public' -Direction Inbound -Action Allow -Protocol UDP -LocalPort $portvalue 
Change the listening port in Remote Desktop (2024)

FAQs

How do I change the listening port for my Remote Desktop? ›

In this article
  1. Start the registry editor. ...
  2. Navigate to the following registry subkey: HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp.
  3. Find PortNumber.
  4. Click Edit > Modify, and then click Decimal.
  5. Type the new port number, and then click OK.
Jul 3, 2024

How do I change my listening port? ›

Windows 10
  1. Step 1: Open the Registry Editor. Run the regedit command. ...
  2. Step 2: Navigate to the Proper Folder. The Registry Editor will now open on your computer. ...
  3. Step 3: Enter a New Port Number. ...
  4. Step 4: Close Registry Editor and Restart. ...
  5. Step 5: Add an Inbound Rule in Windows Defender Firewall.

How do I change my remote server port? ›

For safety reasons we suggest changing Your servers default RDP port to a different one of Your choosing.
  1. Start the “Registry Editor”
  2. Find the following registry subkey: HKEY_LOCAL_MACHINE. System. ...
  3. Open the “PortNumber” and in the menu select “Decimal”
  4. Enter the new port number and click OK.
  5. Close the “Registry Editor”

Should I change my RDP port? ›

Changing the RDP port can help you defend against port scanning and hackers using brute force attacks to enter your remote computers to steal data.

How do I change my RDP port from 3389 to 3390? ›

Go to HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp. On the right-hand side, Double-click on PortNumber and change the value from 3389 to some other custom value for example 3390 or whatever you want to set.

How do I change my local listener port? ›

How to change local listener port number
  1. Remove immutable flag from iptables file: # chattr -i /etc/sysconfig/iptables.
  2. Modify value in /etc/sysconfig/iptables. : From: --dport 1522. To: --dport <new_local_listener_port>
  3. Add immutable flag to iptables file: # chattr +i /etc/sysconfig/iptables.
Mar 6, 2024

How to connect RDP with a different port? ›

Control Panel > System Security > Windows Firewall > Advance Settings > Inbound Rules > New Rule > Select Ports > Next > Give your new port number > Allow ALL in case you want to RDP one that port locally or public > Give it a name > Finish.

How do I change my SSH listening port? ›

Changing the SSH Port
  1. Edit the SSH Configuration File. Open the SSHD configuration file with your preferred text editor. ...
  2. Change the Port Number. Edit the line to reflect your desired port number, preferably above 1024 to avoid conflicts with other standard services. ...
  3. Restart the SSH Service.
Sep 6, 2023

How do I find my listening port? ›

How to check for open ports on Windows
  1. Open the Command Prompt. ...
  2. Type “netstat -aon” and hit enter.
  3. Look for the port numbers in the LISTening state. ...
  4. If the port numbers aren't in the LISTening state, you'll need to open them manually. ...
  5. Open C:\port_test.
Aug 17, 2022

What is the listening port for Remote Desktop? ›

The Remote Desktop Protocol (RDP) enables remote access to Windows computers and servers. By default, RDP uses a listening port on port 3389, a well-known port that can be a target for malicious attacks.

How to check Remote Desktop port? ›

Navigate to “Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp” and right-double-click on “PortNumber “.

What is the safe port for Remote Desktop? ›

Remote Desktop Protocol (RDP) is a Microsoft proprietary protocol that enables remote connections to other computers, typically over TCP port 3389. It provides network access for a remote user over an encrypted channel.

How do I change my port number? ›

How to Change COM Port Number on Windows
  1. Open the Device Manager by pressing the Windows Key + R. Type “devmgmt. ...
  2. Expand the Ports (COM & LPT) section.
  3. Right-click the COM port and select Properties.
  4. Click the Port Settings tab and click Advanced.
  5. Change the COM port number to an available COM port number.

How to enable RDP port 3389? ›

Configuring Port 3389 on Your Router
  1. First, ensure that you've allowed the RDP port through the public network from Windows Firewall as described above.
  2. After logging in, navigate to the section where you can define traffic rules or port forwarding settings.
  3. Create a new rule or port forwarding entry.
Oct 9, 2023

How do I connect to a different port in Remote Desktop? ›

Control Panel > System Security > Windows Firewall > Advance Settings > Inbound Rules > New Rule > Select Ports > Next > Give your new port number > Allow ALL in case you want to RDP one that port locally or public > Give it a name > Finish.

Which port does the remote desktop protocol listen on? ›

Remote Desktop Protocol (RDP) is a Microsoft proprietary protocol that enables remote connections to other computers, typically over TCP port 3389.

How do I change my scan listener port? ›

Steps to Modify Scan listener port number
  1. Step 1: Checking scan listener configurations (run as grid user). [oracle@node1 ]$ srvctl status listener. ...
  2. Step 2: Modifying port number using srvctl as grid user.
  3. Step 3: Reload Both Listeners:
  4. Step 5: Modify TNSNAMES. ORA files used for connectivity to reflect the new port.
Nov 19, 2019

How do I change my audio port? ›

How to change the sound input or output on Windows
  1. Go Settings > System > Sound.
  2. Select the output device that you want to set. This is the device that plays the sound.
  3. Select the input device that you want to set. If you are using an external mic, ensure your input is set to the microphone that you are using.
Mar 30, 2023

Top Articles
Here are the top 3 qualities you need to succeed, according to a high school dropout who became a venture capitalist at one of Silicon Valley's most prominent firms
Palantir alums raise $25M from Peter Thiel's Founders Fund and other VCs for their finance startup, Mosaic | TechCrunch
30 Insanely Useful Websites You Probably Don't Know About
Puretalkusa.com/Amac
Apply A Mudpack Crossword
Boat Jumping Female Otezla Commercial Actress
Which Is A Popular Southern Hemisphere Destination Microsoft Rewards
LeBron James comes out on fire, scores first 16 points for Cavaliers in Game 2 vs. Pacers
The Blind Showtimes Near Showcase Cinemas Springdale
Walgreens On Nacogdoches And O'connor
Lqse-2Hdc-D
800-695-2780
Busted Barren County Ky
Procore Championship 2024 - PGA TOUR Golf Leaderboard | ESPN
All Obituaries | Buie's Funeral Home | Raeford NC funeral home and cremation
Sizewise Stat Login
If you bought Canned or Pouched Tuna between June 1, 2011 and July 1, 2015, you may qualify to get cash from class action settlements totaling $152.2 million
Espn Horse Racing Results
Lisas Stamp Studio
At&T Outage Today 2022 Map
Hampton University Ministers Conference Registration
25 Best Things to Do in Palermo, Sicily (Italy)
Rs3 Ushabti
Bocca Richboro
Haunted Mansion Showtimes Near Epic Theatres Of West Volusia
Jesus Revolution Showtimes Near Regal Stonecrest
Cor Triatriatum: Background, Pathophysiology, Epidemiology
Bolly2Tolly Maari 2
Giantbodybuilder.com
Pronóstico del tiempo de 10 días para San Josecito, Provincia de San José, Costa Rica - The Weather Channel | weather.com
Issue Monday, September 23, 2024
Advance Auto Parts Stock Price | AAP Stock Quote, News, and History | Markets Insider
South Florida residents must earn more than $100,000 to avoid being 'rent burdened'
How to Use Craigslist (with Pictures) - wikiHow
Marine Forecast Sandy Hook To Manasquan Inlet
Family Fare Ad Allendale Mi
Bay Focus
ENDOCRINOLOGY-PSR in Lewes, DE for Beebe Healthcare
Myanswers Com Abc Resources
Prior Authorization Requirements for Health Insurance Marketplace
Entry of the Globbots - 20th Century Electro​-​Synthesis, Avant Garde & Experimental Music 02;31,​07 - Volume II, by Various
Armageddon Time Showtimes Near Cmx Daytona 12
Alpha Labs Male Enhancement – Complete Reviews And Guide
Does Target Have Slime Lickers
Ehome America Coupon Code
The Many Faces of the Craigslist Killer
Gander Mountain Mastercard Login
Msatlantathickdream
Mike De Beer Twitter
Marion City Wide Garage Sale 2023
Inside the Bestselling Medical Mystery 'Hidden Valley Road'
Syrie Funeral Home Obituary
Latest Posts
Article information

Author: Barbera Armstrong

Last Updated:

Views: 6373

Rating: 4.9 / 5 (59 voted)

Reviews: 90% of readers found this page helpful

Author information

Name: Barbera Armstrong

Birthday: 1992-09-12

Address: Suite 993 99852 Daugherty Causeway, Ritchiehaven, VT 49630

Phone: +5026838435397

Job: National Engineer

Hobby: Listening to music, Board games, Photography, Ice skating, LARPing, Kite flying, Rugby

Introduction: My name is Barbera Armstrong, I am a lovely, delightful, cooperative, funny, enchanting, vivacious, tender person who loves writing and wants to share my knowledge and understanding with you.