Looking for webhosting sites? Use Statsdom cloud computing. Also you can be interested in Chanterelle Info Webhosting.

Author Topic: How to Change RDP Port on Windows Server (Remote Desktop)  (Read 16328 times)

Gaiacom_LC

  • Newbie
  • *
  • Posts: 22
    • View Profile
How to Change RDP Port on Windows Server (Remote Desktop)
« on: March 15, 2014, 03:51:27 AM »
If you use remote desktop (RDP) with your Windows server, you may wish to update the server's RDP port for added security. To update the RDP port from the default port 3389, follow the steps below:
  • Start the Registry Editor by navigating to Start > Run > regedit
  • Locate the registry key called HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\TerminalServer\WinStations\RDP-Tcp\PortNumber
  • Click the subkey PortNumber, find the Edit menu, choose Modify, then select Decimal.
  • Type your desired port number. It should be xxxx or xxxxx, and should not conflict with another running service (choose a high port number).
  • Click OK. Exit Registry Editor. Restart the system.
The server's port for RDP connections will now be updated.

NOTE: To connect to Windows server on the new port, you will need to specify the port in Remote Desktop Connection or your RDP application of choice. This is usually done by entering the server’s IP address and port in the following format:

0.0.0.0:33994 (Where “0.0.0.0″ is the server’s IP address, and “33994″ is the RDP port number.)
How to Change RDP Port via RedArray Knowledgebase.
|| Gaiacom, L.C. (www.gaiacom.net)
|| Platform Management, web optimization, IT infrastructure hosting.
|| Dedicated Servers \\ VPS Hosting \\ Software \\ Visit our website to learn more!

markwilson

  • Newbie
  • *
  • Posts: 11
    • View Profile
Re: How to Change RDP Port on Windows Server (Remote Desktop)
« Reply #1 on: March 25, 2021, 05:25:30 AM »
Connect to your server via Remote Desktop

On your keyboard hold down the Windows logo + R  buttons which opens the “Run” dialog and execute the “cmd” command and click OK


Type “regedit” and click enter


Navigate to the following Registry key

HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\TerminalServer\WinStations\RDP-Tcp\PortNumber


Find the “PortNumber” registry subkey and either right-click or double-click it. A box should pop that says “edit DWORD.” Find the value data (it should say 3389 for standard installations) and change it to the port that you would like.

I hope these steps will be helful!
Mark Wilson

Akshay_M

  • Full Member
  • ***
  • Posts: 113
    • View Profile
Re: How to Change RDP Port on Windows Server (Remote Desktop)
« Reply #2 on: March 18, 2022, 07:42:42 AM »
STEP 1
Connect to the Windows Client/Server over RDP

Launch the Registry Editor (press WIN+R, type regedit, press Enter)

STEP 2
Navigate to the Remote Desktop Registry (RDP-Tcp)

Go to HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp.


STEP 3
Change the default port number

Double-click on the PortNumber value and change the port to 33091 (Decimal).

Change-RDP-port-tutorial-v2cloud
Click OK to save the changes

Restart your Windows computer or restart RDP services using the command prompt for changes to apply.

Cmd: net stop termservice & net

STEP 4
Connect to the windows computer after restarting via RDP and include the new RDP port.


STEP 5
Confirm listening port

Once you have successfully connected to the windows computer using the new RDP port, you can use the netstat -na | Find “List” command to confirm Remote Desktop Service is listening on the new port.

Changing RDP port helps to reduce the risk of port scanners and RDP vulnerabilities.