![](https://reliablevps.net/wp-content/uploads/2024/03/miniature-workers-working-chip-motherboard.jpg)
How to change RDP Port ?
- Changing the Remote Desktop Protocol (RDP) port on your VPS (Virtual Private Server) can be done to enhance security by avoiding common default ports.
Here are the general steps to change the RDP port: - Note: Make sure you have a backup plan for accessing your server in case something goes wrong before making any modifications.
- Connect to your VPS:
- Use the console that your VPS hosting provider has given, or use your current RDP connection.
- Access the Registry Editor:
- Press
Win + R
to open the Run dialog. - Type
regedit
and press Enter to open the Registry Editor.
- Press
- Navigate to the RDP Port Registry Key:
- Navigate to the following registry key:HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp
- Navigate to the following registry key:
- Modify the Port Number:
- Find the
PortNumber
DWORD on the right side and double-click it. - Choose the “Decimal” base and enter the new port number. Common alternatives include values like 3390 or 3389.
- Find the
- Update Firewall Rules:
- Update the rules on your firewall, if you have one, to permit traffic on the new RDP port.
Making sure that your server is still accessible requires doing this.
- Update the rules on your firewall, if you have one, to permit traffic on the new RDP port.
- Restart the Remote Desktop Service:
- Open the Services application (
services.msc
) from the Run dialog. - Find the service named “Remote Desktop Services” or “Remote Desktop Configuration.”
- Right-click and choose “Restart.”
- Open the Services application (
- Test the Connection:
- Try to establish an RDP connection to your VPS using the new port.
- Ensure your RDP client specifies the new port, e.g.,
your_server_ip:3390
.
- Update Security Groups or Firewall Settings (if applicable):
- Make careful to adjust the security group or external firewall settings on any networks your VPS is connected to in order to permit traffic on the new RDP port.
- Remember that changing the RDP port alone is just one step in enhancing security.
It’s also recommended to implement other security measures, such as strong passwords, network-level authentication, and if possible, using a Virtual Private Network (VPN) for remote access.
Always exercise caution when making changes to the registry, and consider creating a backup or snapshot of your server before proceeding.