+3 votes
306 views
Change Remote Desktop port Windows Server 2022 | RDP

in WindowsServer by (552k points)
reopened | 306 views

1 Answer

+4 votes
Best answer

How to change remote desktop port in Windows Server 2022

The remote in Windows 10 support is made possible by the RDP protocol (Remote Desktop Protocol) with which we achieve a range of management between computers without having to go directly to the physical location of the user, this simplifies many tasks support and control for administrators ..

 

By default, the port used by Windows Server 2022 for this RDP connection is port 3389 and although this may not be relevant, it can become a cause of vulnerabilities since an attacker can use that port to make his connections and cause effects on the server. and in the information hosted there. Therefore, a good security advice is to change the port and in this way add a touch of security to the system, TechnoWikis will explain the way to achieve this and thus protect the most sensitive information.

 

 

 

To stay up to date, remember to subscribe to our YouTube channel!   SUBSCRIBE

 

How to change remote desktop port in Windows Server 2022

 

Step 1

We open the Server Manager and in the "Remote Desktop" line we validate that it is enabled:
If not, we must click there and enable it.

 

image

 

 

Step 2

Now we open the Registry Editor from the Start menu:

 

image

 

 

Step 3

In the Editor we will go to the following path:
 HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \ Control \ Terminal Server \ WinStations \ RDP-Tcp 
image

 

 

Step 4

We double click on the "PortNumber" value, in the pop-up window we activate the "Decimal" box to see the default port:

 

image

 

 

Step 5

We establish the new port:

 

image

 

 

Step 6

We apply the changes.

 

image

 

 

Step 7

Now open the Control Panel and activate the "small icons" box:

 

image

 

Step 8

We select the line "Windows Defender Firewall" and we will see the following:

 

image

 

 

Step 9

We click on "Advanced settings" and then we go to "Inbound rules":

 

image

 

 

Step 10

We click on "New rule" and in the initial window we activate the "Port" box:

 

image

 

 

Step 11

In the next window we enter the port we have assigned and configure it as TCP:

 

image

 

 

Step 12

Next, we must allow the connection of this port:

 

image

 

 

Step 13

Next, we define the profiles in which it will be active:

 

image

 

 

Step 14

We assign a name to the rule to create:

 

image

 

 

Step 15

Click Finish to complete the process:

 

image

 

 

Step 16

Restart Windows Server 2022 to finish the port update process:

 

image

 

 

Step 17

When logging in, we open the CMD console and execute the command "ipconfig":

 

image

 

 

Step 18

We must take into account the IP address for remote access. On the client computer we open Run and enter the command "mstsc":

 

image

 

 

Step 19

In the pop-up window we enter the IP address of Windows Server 2022 with the port we have assigned:

 

image

 

 

Step 20

Click Connect to enter the credentials to use:

 

image

 

 

Step 21

By clicking OK we will see the following:

 

image

 

Step 22

It is an issue associated with the certificates, we click Yes to access the equipment remotely through the selected port:

 

image

 

In this way we have changed the Remote Desktop port in Windows Server 2022 to add security to the server..

 


by (3.5m points)

Related questions

+3 votes
1 answer
asked Oct 13, 2020 in WindowsServer by backtothefuture (552k points) | 412 views
+5 votes
1 answer
asked Feb 1, 2021 in WindowsServer by backtothefuture (552k points) | 397 views
+4 votes
1 answer
asked Nov 17, 2019 in Windows 10 by backtothefuture (552k points) | 484 views
+4 votes
1 answer
+5 votes
1 answer
Sponsored articles cost $40 per post. You can contact us via Feedback

Most popular questions within the last 30 days

10,659 questions
10,791 answers
510 comments
3 users