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
Why hire a financial advisor | Fidelity
Top Fundraising Tips
Dte Outage Map Woodhaven
Mate Me If You May Sapir Englard Pdf
Exam With A Social Studies Section Crossword
Wmu Course Offerings
Call Follower Osrs
Best Transmission Service Margate
David Packouz Girlfriend
Moviesda Dubbed Tamil Movies
Mlifeinsider Okta
Our History | Lilly Grove Missionary Baptist Church - Houston, TX
Craigslistdaytona
Belle Delphine Boobs
iLuv Aud Click: Tragbarer Wi-Fi-Lautsprecher für Amazons Alexa - Portable Echo Alternative
Petco Vet Clinic Appointment
Zack Fairhurst Snapchat
Pickswise Review 2024: Is Pickswise a Trusted Tipster?
Accident On The 210 Freeway Today
Invitation Homes plans to spend $1 billion buying houses in an already overheated market. Here's its presentation to investors setting out its playbook.
Katie Sigmond Hot Pics
College Basketball Picks: NCAAB Picks Against The Spread | Pickswise
When Does Subway Open And Close
Horses For Sale In Tn Craigslist
Weather October 15
Movies - EPIC Theatres
Keshi with Mac Ayres and Starfall (Rescheduled from 11/1/2024) (POSTPONED) Tickets Thu, Nov 1, 2029 8:00 pm at Pechanga Arena - San Diego in San Diego, CA
Albertville Memorial Funeral Home Obituaries
Greyson Alexander Thorn
Die wichtigsten E-Nummern
Hoofdletters voor God in de NBV21 - Bijbelblog
Does Circle K Sell Elf Bars
Weekly Math Review Q4 3
Rocketpult Infinite Fuel
20+ Best Things To Do In Oceanside California
Search All of Craigslist: A Comprehensive Guide - First Republic Craigslist
Taylor University Baseball Roster
Cygenoth
Dee Dee Blanchard Crime Scene Photos
Canvas Elms Umd
Boyfriends Extra Chapter 6
Ajpw Sugar Glider Worth
Barber Gym Quantico Hours
Makes A Successful Catch Maybe Crossword Clue
Rubmaps H
Fresno Craglist
Arnold Swansinger Family
Convert Celsius to Kelvin
Craigs List Sarasota
Sdn Dds
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.