Start networking and exchanging professional insights

Register now or log in to join your professional community.

Follow

How will change RDP Port on Windows 2012 Server ?

user-image
Question added by Muhammad Anzar , DevOps/DevSecOps Architect , Confidential
Date Posted: 2015/03/04
Nithin Kwaja
by Nithin Kwaja , IT Administrator , Sonetel software service pvt ltd

The RD Gateway can be used to securely publish RemoteApps  over the internet over Secure Sockets Layer (SSL).

We can change the port  no by right-click the properties of the RD Gateway server ->

select properties -> on the properties dialog we select Transport Settings. 

Here we have the option available “HTTP Port (default443)” to change the default port.  we change it to port eg:-666 and apply the configuration 

Then we need to confirm that the following actions will be performed.

Daneesh Viswanathan
by Daneesh Viswanathan , ICT Project Engineer , Salam Technology

By default RDP is using  port number3389. You can change the same to a unreserved port using regedit.

Note: Editing the registry is risky thing and should sure you have a verified backup before saving any changes.

The following steps can used to change RDP default port using regedit

1) Click Windows logo +r key2) Type the below path in run windowHKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\Terminal Server\\WinStations\\RDP-Tcp

It may require a reboot to make the port assignment take effect.Once the system is listening on the new port, connections need to specify the new port in the RDP client properties

Biruk Hailemariam
by Biruk Hailemariam , System and Network Administrator , Yencomad Construction

1.  Open Run (Win Key + R) type Regedit and hit OK

on registry Editor Go to  Go to HKEY_LOCAL_MACHINE\\\\System\\\\CurrentControlSet\\\\Control\\\\TerminalServer\\\\WinStations\\\\RDP-Tcp\\\\PortNumber and enter your Desired Port Number and Restart the server

Remote desktop protocol (RDP) is the de facto administrative console access, and it may be necessary to make it even more secure by changing the TCP port used for the network access. RDP transports on TCP3389 by default for all supported versions of Windows; if you want to change the port, it requires a quick change in the Windows registry.

 

The following hive has the specific TCP port used for RDP:

[HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\Terminal Server\\WinStations\\RDP-Tcp]

In this hive, the PortNumber value contains the configured port that Windows will listen for RDP connections. The default port assignment is represented as D3D in hexadecimal or3389 in binary.

It may require a reboot to make the port assignment take effect. Once the system is listening on the new port, connections need to specify the new port in the RDP client properties

The Windows Server system will now listen on the new port with the Svchost.exe process, visible in task manager by entering Netstat  -a -n -o to view the current processes and list the associated executable.

Sooraj Raju
by Sooraj Raju , Systems Engineer , Jenesys Technologies pvt. ltd.

Enter the registry editor

Hkey_Local_Machine/System/CurrentControlSet/Control/TerminalServer/Winstations/RDP-Tcp/Port-no

Change the default value of3389 to some unique unreserved portno: say55389

Save & reboot

Vinod Chukkath
by Vinod Chukkath , System Administrator , Integrated Smart Technologies LLC

By editing registry key in server

Ragesh Vadakkedath Ramachandran
by Ragesh Vadakkedath Ramachandran , IT Administrator , Nippon Motor Corporation (P) Ltd

  1. Connect to your server via Remote Desktop
  2. Click simultaneously on the Windows logo + R to open the “Run” dialog and execute the “cmd” command
  3. Open the registry editor by typing the “regedit” command
  4.  Search for this registry subkey: HKEY_LOCAL_MACHINE\\System\\CurrentControlSet\\Control\\TerminalServer\\WinStations\\RDP-Tcp\\PortNumber
  5. 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 is3389, in this example, we selected port3390). Click on “Ok” to save your selection.
  6. IMPORTANT: Make sure that remote access to your server through the new port is authorized in your Windows firewall before executing the next step.
  7. Exit the registry editor
  8. Restart your server

Reference

https://kb.iweb.com/entries/-Change-the-Remote-Desktop-Connection-port-to-your-Windows-Server

Roshan Firozkhan
by Roshan Firozkhan , IT System Administrator , Emirates Driving Institute

Add the windows remote desktop services role in windows2012 server

 

In that there is an administrative tool named remote desktop gateway manager

 

In that tool you can change the port, ip address etc

 

Generally speaking the registry setting for RDP port you can find in 

 

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

Hrishikesh PA
by Hrishikesh PA , UNIX SME , Infosys

Guys,

 

After changing the RDP port using the above mentioned steps, make sure that firewall rules are created for the new port before restarting the Service. 

NAFI RAHMAN KATTIL PUTHIYA PURA
by NAFI RAHMAN KATTIL PUTHIYA PURA , IT Support Engineer , Cleveland Clinic Abu Dhabi

Hi,

 

Changing RDP port is so easy..

 

1.  Open registry editor (cmd --> regedit)

Note: Its good to back up registry before you make any changes.

To backup, from registry window click on Files --> Export

 

2.Go to HKEY_LOCAL_MACHINE\\System\\CurrentControlSet\\Control\\TerminalServer\\WinStations\\RDP-Tcp\\PortNumber.

 

3. Edit --> Click on decimal -- > Enter custom port number.

 

4. Restart the server to take the changes.

 

Note: Please remind to allow the port in firewall before proceeding restart.

 

5. To connect RDP, enter (windows key+R) --> mstsc -->192.168.1.32:65432

 

Where65432 is customized port number.

 

Regards,

 

Nafi

Rajesh Pant
by Rajesh Pant , System Engineer , Tech Mahindra Limited

The instructions below apply to machines under Windows Server2012,2008 R2,2008, and2003. Follow these steps:

  • Connect to your server via Remote Desktop

 

  • Click simultaneously on the Windows logo + R to open the “Run” dialog and execute the “cmd” command

 

  • 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 is3389, in this example, we selected port3390). 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 server

 After the reboot, specify the Remote Desktop port number.

More Questions Like This

Do you need help in adding the right keywords to your CV? Let our CV writing experts help you.