Changing the default RDP (Remote Desktop Protocol) port on your VPS can be done by following these steps:
Log in to your VPS using Remote Desktop Connection or any other remote desktop client.
Open the Registry Editor by typing "regedit" in the Start menu search bar and pressing Enter.
Navigate to the following key:
Locate the "PortNumber" entry in the right-hand pane and double-click on it.
Select "Decimal" and change the value to the new port number you want to use. Make sure the new port number is not already in use by another service.
Close the Registry Editor and restart the Remote Desktop service.
If you are using Windows Firewall, you will need to allow the new port through the firewall. Open the "Windows Defender Firewall with Advanced Security" and create a new inbound rule that allows the new RDP port.
Test the new RDP connection by using the new port number in your remote desktop client.
Changing the default RDP port can improve security, as it makes it harder for attackers to find and exploit your RDP service.
However, changing the port number may also require additional configuration changes in any firewalls, routers, or port forwarding rules you have set up.
Also, be sure to remember the new port number, as you will need to use it when connecting to your VPS via RDP in the future.
Another option would be to secure your Windows VPS or Dedicated Server using a VPS such as Wireguard.