Рет қаралды 155
To change the RDP port number on Windows, follow these steps. This will be useful for securing your remote access by moving it from the default port, which is often targeted by attackers.
Changing the RDP Port Number in Windows
Open the Windows Registry Editor:
Press Win + R to open the Run dialog.
Type regedit and press Enter. Click Yes if prompted by User Account Control.
Navigate to the RDP Port Registry Key:
In the Registry Editor, go to
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp
Find the "PortNumber" Key:
In the right panel, locate the PortNumber entry.
Double-click it to edit.
Modify the Port Value:
Select the Decimal option.
Enter the new port number you want to use for RDP (make sure it's not being used by another service).
Click OK to save changes.
Allow the New Port Through Windows Firewall:
Open Windows Defender Firewall settings.
Go to Advanced settings.
Select Inbound Rules and create a new rule for TCP with the new port number.
Restart the Computer:
Restart your system to apply the new port settings.
Access RDP with New Port:
When connecting remotely, specify the new port by typing your-ip-address:new-port (e.g., 192.168.1.1:1005).