By default Windows machines are remotely accessible via Remote Desktop on TCP port 3389. In certain situations changing the Remote Desktop port is useful, especially when you receive a huge number of failed Remote Desktop login attempts on default port. In order to change the default port of Remote Desktop, you'll need to alter the registry of your server.
The instructions below apply to machines under Windows Server 2012, 2008 R2, 2008, and 2003. Follow these steps:
- Login to your windows VPS/server as administrator via Remote Desktop
- Click simultaneously on the Windows logo + R to open the “Run”
- Open the registry editor by typing the “regedit” command
- Search for this registry subkey:
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\TerminalServer\WinStations\RDP-Tcp\PortNumber
Double-click or right-click on the “PortNumber” registry subkey, select the decimal base and type the port number of your choice (the default port is 3389, in this example, we selected port 3390). Click on “Ok” to save your selection.
IMPORTANT: Make sure that remote access to your server through the new port is authorized in your Windows firewall before executing the next step
- Exit the registry editor
- Restart your VPS/server
Most Popular Articles
Increase PHP file Upload size in windows server 2008
The php.ini file is the default configuration file for running applications that require PHP. It...
Setup Basic POP3/IMAP Mail Server in Centos/RHEL
Setup Basic POP3/IMAP Mail Server in Centos/RHELSetting up a mail server can be quite...
How Do I access RDP
Remote Desktop Protocol (RDP) is a proprietary protocol developed by Microsoft, which provides a...
Update Time-Zone on OpenVZ VPS
OpenVZ will reflect the host server’s time by default, You can configure your VPS with custom...
Enable TUN/TAP in Solus VM
TAP (as in network tap) simulates a link layer device and it operates with layer 2 packets such...