HomeMicrosoftHow to Change Remote Desktop Port in Windows Server 2022

How to Change Remote Desktop Port in Windows Server 2022

This article will explain how to change remote desktop port on Windows Server 2022. The remote server 2022 support is made possible by the Remote Desktop Protocol (RDP protocol) with which we reach a range of management within computers without having to go directly to the physical location of the user. This clarifies many tasks and provides control for administrators.

By default, the RDP connection port used by Windows Server 2022 is port 3389, and though this may not be applicable, it can become a cause of weakness since an attacker can use the default port to make his connections and cause effects on your server. And in the information hosted there,. Therefore, good security advice is to change the default port and, in this way, add a touch of security to the system.

For more information and detailed instructions, you can visit the official Microsoft Documentation on changing the remote desktop port in Windows Server 2022:

Change Remote Desktop Port

In the Server Manager, click on the local server and check that “Remote Desktop” is enabled.
If not, we must click there and enable it.

Server manager

Choose “allow remote connections to this computer and click OK.

Enable remote desktop

Open the Registry Editor by entering regedit in run.

Run command regedit

In the Registry Editor, go to the following path:.

HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp

In this instance, you will need to change the port number that the Remote Desktop service is listening on to 3350. To do this.
Find the name PortNumber. This parameter shows the port on which your Remote Desktop service is running. Double-click on the PortNumber value.

Change remote desktop port

The default port is 3389 (decimal). Change the value of this parameter.

Portnumber RDP-port

The RDP port is now set to 3350 (decimal).

Change remote desktop port

How to Allow Remote Desktop Port in Windows Firewall

Search the control panel and open it.

Search control panel

In the Control Panel, open the Windows Defender firewall.

Control panel

Click on advanced settings.

Windows defender firewall

Click on Inbound Rules, and then choose new rule.

Windows defender firewall inbound rules

In the new inbound rule wizard, select port and click next.

New inbound rule wizard

Specify local ports (3350) and click next.

Specify the protocols and ports

Choose to allow the connection to this port and click next.

Allow the connection port

Specify the profiles for which this rule applies and click OK.

Inbound rule specify the profiles

Assign a name to the rule to create, and click Finish.

New inbound rule wizard name

Restart Windows Server 2022 to complete the port update process.

Restart windows server 2022

Test Remote Desktop Port

On any client computer, we need to test the remote desktop port number.
Open run and type the command mstsc.

Run command mstsc

In the remote desktop connection window, enter the IP address of Windows Server 2022 with the port we have assigned earlier and click on connect.

Remote desktop connection

Enter the credentials to use and click OK.

RDC enter your credentials

It is an issue associated with the RDP certificates; click Yes to access remotely through the selected port.

Remote desktop connection certificate

We have successfully connected with the port number we changed.

Remote desktop connected

Read more: How to Solved CredSSP Encryption Oracle Remediation.

Jamil
Jamilhttp://jamiltech.com
A Professional Technology Blog Writer | An energetic professional with more than 20+ years of rich experience in Technology, Planning, Designing, Installation, and Networking.
RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments

what is cryptocurrency and bitcoin on How to Backup and Restore IIS Configuration
경기광주출장안마 on How to Backup and Restore IIS Configuration
영등포출장마사지 on How to Backup and Restore IIS Configuration
Twalsu light mirror for vanity on How to Backup and Restore IIS Configuration
fitspresso analysis on How to Reset Microsoft 365 Password
historical landmarks tours for history buffs on How to Add Hyper-V Server Altaro VM Backup
9780443186882 PDF download on How to Migrate Active Directory 2012 to 2022
Shaik Mohammad Jaheer on How to Enable Night Light on Windows 11