How to Change RDP port in Windows

Recently, quite a lot of Windows and Windows Server users who are connected to the Internet and access the network via a static IP address are faced with the fact that their computer, server and remote desktop does not work correctly. This is pronounced in frequent errors when connecting to the server, slow system operation and running programs on the computer. If it concerns the remote desktop, then there may be frequent connection session crashes and subsequent errors that the remote computer is unavailable, or simply gives a general error when connecting. This is due to the fact that there are a lot of connection attempts to the Remote Desktop Service. Often about a dozen in a single second. Attackers try to guess the password and get access to the server account.  This causes the session overflow of available connections to the service and thus putting it out of service. A separate side effect in this situation is the increased load in processing these connections by the server or computer under attack, resulting in slower programs and unstable operation of the computer itself.

So how can you get your computer back up and running and protect yourself from attacks on your computer?

If you have already encountered the fact that your remote computer or server becomes unavailable when you connect via remote desktop, then to start with you just need to reboot it. This will allow you to access the system for subsequent operations and settings.

The first thing to do is to check the Event Viewer log for information on any server hacking attempts. In the Windows Logs - Security tab. If there is an active attack on your device, you will see quite a few failed attempts to connect to the system (Audit Failure). In the event details, you can see the Account Name of the user who tried to connect and the IP address (Source Network Address) from which the connection was attempted.

Event Viewer logs Windows

Now we are sure that someone is trying to get the password to our device.

In order to secure our service, we need to change the connection port of the remote desktop service. Let's see how to do this using Windows Server 2022 as an example.

1. Open the registry editor through the standard Windows Quick Search window

open regedit Windows quick

or via the Run window (Win+R key combination)

open regedit via run

2. Go to the tab

Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp

remote desktop service params

3. Click twice on the PortNumber parameter. In the new window, select the decimal number system and type in the new connection port to be used.

change rdp port

Done. We have changed the connection port to the remote desktop service.

But that's not all. The standard Windows system has the Firewall service enabled, which has a set of rules for connecting to our device. Normally it is configured to access port 3389, which is the default port for the Remote Desktop Service, but now we have changed this port and we need to add a new rule to our Firewall.

4. To do this, open the Windows Defender Firewall.

Run Windows Defender Firewall

5. Click the Advanced Settings tab

Advanced setting Windows Firewall

6. In the new window, select the Inbound Rules category, left-click on it and select New Rule.

new rule Firewall RDP

7. Choose the type of rule, namely what we will allow.

Type of the rule Firewall

8. Specify the port number that you previously specified in the Registry Editor in the PortNumber parameter.

add port in firewall Windows

9. Next, enable the rule for the specified zones.

seelct zones firewall

10. Allow connections to the new rule.

allow connection firewall rdp

11. Specify the name of the rule under which it will be displayed in the list of all rules.

name of the rule firewall rdp

It's done!

list of the rules firewall

Now you only have to reboot the computer and the changes will take effect.

How do I connect to a service with a new port?

To connect to a computer with a changed port, specify the new port at the end of the server address, separated by a colon.

Example: 192.168.0.2:33899

connect to rdp with custom port

And we remind you that you can order a remote desktop in our company and in case of any problems of this nature - we will be happy to help you with a quick solution and provide quality service.

You can choose a location and order a remote desktop here

https://finerdp.com/rdp-server

Available locations

USA
Ukraine
Netherlands
Poland
Latvia

Click on Flag

Why you should buy RDP server in from us.

The remote desktop protocol is an approach to accessing windows from a remote area without really accessing your device from its actual location. Moreover, the users using the remote desktop protocol can utilize their windows platform anytime and any place they want. The remote desktop protocol is a product from Microsoft Corporation. The protocol came in to deliver the windows server at residence. Using the remote desktop protocol is easy. It is as comfortable as hitting an icon to control your Windows from any other external computer or smart device. The remote desktop control also enables you to share the mouse and keyboard activity with the remote device. Users accessing the remote desktop control can access the Windows/ computer as if they are working on the same computer. It creates an exact ditto environment to work on. The significance of RDP has made it popular among users.

If you still have uncertainties in your mind, you can read out a detailed guide.

If you want to access the RDP, then you need to have the following things. This indulges connecting yourself to the remote. Thus, you need the following things.

  • The system that you want to access remotely should have RDP program in it. However, if it is a windows system, you can get it by default.
  • The user should have a strong and stable internet connection. The minimum upload and download speed should be more than or equivalent to 2 MBPS.

All plans that we offer are exclusively private. That is why every RDP plan comes with full admin access.

In most cases, the RDP details get delivered within an hour after payment. However, in some cases this may take several hours.