Welcome to TechNet Blogs Sign in | Join | Help

PERFGURU

Technical Blogs on All Kinds of Performance Issues
How to change RDP Port on TS

 Terminal services used port 3389 by default. It is well known port TS uses so there can be a chance that it can be a target for attack by network intruders.

 

Even though network attackers can find the port that is in use, changing TS port from 3389 can make it more difficult to attack a TS server.

 

TS port can be changed from the registry

 

HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp

 

Value: Port Number

Type: REG_DWORD

Data: 3389 in decimal or d3d in hex

 

We can use any ephemeral port ranging from 1024-4999 by default. After making the registry changes restart the terminal services

 

To check the port on which terminal server is listening run nestat –aon from command prompt.

 

 

++ Remote Desktop Client

      Launch mstsc.exe. In the computer field specify the <TS name>:<port number> e.g. If server name is termserver1 and port is 3900 then we need to put termserver1:3900

++Remote Desktop We Connection

 

Make connection to web server which host the remote desktop web connection using http://<server name>/ts

 

 

Click on the Remote Desktop icon. In Connect to: field specify the <TS name>:<port number>

 

 

++Remote Applications:

 

To configure Remote Applications, accessible through TS Web Access or a custom .rdp file, to use custom Terminal Server port, you must configure custom RDP Settings  in  TS Remote App Manager MMC snap-in.

 

RemoteApp Deployment Settings à Terminal Server à RDP Port

 

 

Specify the custom port in RDP port field.

Posted: Tuesday, July 01, 2008 9:16 AM by pawansharma

Comments

pjkelly@hotmail.com said:

In our environment , we have been doing this on all of our servers. I followed these steps on Server 2008 and it seem to doesn't work... even after a reboot.

# July 1, 2008 10:21 AM

pawansharma said:

After making the changes which port terminal server is listening??

Is it still showing 3389 in nestat –aon output?

I would appreciate if you could provide more details :)

# July 1, 2008 10:59 AM

pjkelly@hotmail.com said:

I forgot to create a new exception for the changed RDP port.

# July 14, 2008 4:30 PM

Badhusha said:

after finish this config. restart the computer

it is working with me.

# August 31, 2008 5:57 AM
Leave a Comment

(required) 

(required) 

(optional)

(required) 

  
Enter Code Here: Required

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Page view tracker