Changing the Remote Desktop Connection listening port

Wow, you can actually change the Remote Desktop Connection listening port!
 
Here’s how to do it:
 
1 – Disable Remote Desktop.
2 – Open up regedit.
3 – Go to the key:
HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlTerminal ServerWinStationsRDP-Tcp
4 – Change the dword value PortNumber to whatever you want.
5 – Enable Remote Desktop.
 
Now when you want to establish a remote connection, you’ll need to specify the port number after the server, for example:
 
192.168.2.110:1234
 
(Where server is listening on port 1234 on 192.168.2.110.)
 
It’s worth saying that once the port number is changed, the Remote Desktop Web Connection will cease for function since (as far as I’ve tried anyway…) it can only connect to the default port (TCP 3389).
 
Does anyone know how I can get Remote Desktop Web Connection to work with the altered port?
 
 
 
!!! —–Update—– !!!
Woohoo!  I’ve just found out you CAN indeed change the default port for the web connection as referenced in this website:
 
 
All you need to do is to add:
MsRdpClient.AdvancedSettings2.RDPPort = xxxx
to default.htm (where xxxx is your custom port number).
 
Needless to say, you want to secure that page from any unauthorized uses if you want your new port to remain as anonymous as possible  .
 
Hey, actually… shouldn’t that page already be secured from unauthorized access  !?
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: