You can use Remote Desktop Connection to connect from a remote location to your machine or vice versa. It would be a wise option to change the default port of Windows RDP to something else other than 3389 so you can avoid automation attacks on your machine.
In this article I will explain you how to change the Default RDP port on your machine or even add a second RDP connection on different port.
If you want to change the default port number:
Start-> Run -> Regedit
Locate: HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\TerminalServer\WinStations\RDP-Tcp\
Change PortNumber value which in hex would show as “d3d”. Select decimal and enter a new port
Example:
To create a second port to bind with RDP:
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp2]
“Callback”=dword:00000000
“CallbackNumber”=”"
“CdClass”=dword:00000000
“CdDLL”=”"
“CdFlag”=dword:00000000
“CdName”=”"
“CfgDll”=”RDPCFGEX.DLL”
“ColorDepth”=dword:00000005
“Comment”=”"
“Domain”=”"
“DrawGdiplusSupportLevel”=dword:00000001
“fAutoClientDrives”=dword:00000001
“fAutoClientLpts”=dword:00000001
“fDisableCam”=dword:00000000
“fDisableCcm”=dword:00000000
“fDisableCdm”=dword:00000000
“fDisableClip”=dword:00000000
“fDisableCpm”=dword:00000000
“fDisableEncryption”=dword:00000001
“fDisableExe”=dword:00000000
“fDisableLPT”=dword:00000000
“fEnableWinStation”=dword:00000001
“fForceClientLptDef”=dword:00000001
“fHomeDirectoryMapRoot”=dword:00000000
“fInheritAutoClient”=dword:00000001
“fInheritAutoLogon”=dword:00000001
“fInheritCallback”=dword:00000000
“fInheritCallbackNumber”=dword:00000001
“fInheritColorDepth”=dword:00000000
“fInheritInitialProgram”=dword:00000001
“fInheritMaxDisconnectionTime”=dword:00000001
“fInheritMaxIdleTime”=dword:00000001
“fInheritMaxSessionTime”=dword:00000001
“fInheritReconnectSame”=dword:00000001
“fInheritResetBroken”=dword:00000001
“fInheritSecurity”=dword:00000000
“fInheritShadow”=dword:00000001
“fLogonDisabled”=dword:00000000
“fPromptForPassword”=dword:00000000
“fReconnectSame”=dword:00000000
“fResetBroken”=dword:00000000
“fUseDefaultGina”=dword:00000000
“InitialProgram”=”"
“InputBufferLength”=dword:00000800
“InteractiveDelay”=dword:00000032
“KeepAliveTimeout”=dword:00000000
“KeyboardLayout”=dword:00000000
“LanAdapter”=dword:00000000
“MaxConnectionTime”=dword:00000000
“MaxDisconnectionTime”=dword:00000000
“MaxIdleTime”=dword:00000000
“MaxInstanceCount”=dword:ffffffff
“MinEncryptionLevel”=dword:00000002
“NWLogonServer”=”"
“OutBufCount”=dword:00000006
“OutBufDelay”=dword:00000064
“OutBufLength”=dword:00000212
“Password”=”"
“PdClass”=dword:00000002
“PdClass1″=dword:0000000b
“PdDLL”=”tdtcp”
“PdDLL1″=”tssecsrv”
“PdFlag”=dword:0000004e
“PdFlag1″=dword:00000000
“PdName”=”tcp”
“PdName1″=”tssecsrv”
“PortNumber”=dword:00000d3d
“SecurityLayer”=dword:00000001
“Shadow”=dword:00000001
“UserAuthentication”=dword:00000000
“Username”=”"
“WdDLL”=”rdpwd”
“WdFlag”=dword:00000036
“WdName”=”Microsoft RDP 6.1″
“WdPrefix”=”RDP”
“WFProfilePath”=”"
“WorkDirectory”=”"
“WsxDLL”=”rdpwsx”
Download File: [Download not found]
Edit and change PortNumber value from “d3d” to the equivelant hex value and execute the registry modifications. When done restart your system for changes to take place. (As you will notice in the registry file you will edit it creates a new RDP-Tcp folder with number 2 to create another instance.)
If you have a firewall solution do not forget to open the relevant TCP port for incoming connections.



















































Stephen






