Translator
      English flagItalian flagKorean flagChinese (Simplified) flagChinese (Traditional) flagPortuguese flagGerman flagFrench flag
      Spanish flagJapanese flagArabic flagRussian flagGreek flagDutch flagBulgarian flagCzech flag
      Croatian flagDanish flagFinnish flagHindi flagPolish flagRomanian flagSwedish flagNorwegian flag
      Catalan flagFilipino flagHebrew flagIndonesian flagLatvian flagLithuanian flagSerbian flagSlovak flag
      Slovenian flagUkrainian flagVietnamese flagAlbanian flagEstonian flagGalician flagMaltese flagThai flag
      Turkish flagHungarian flagBelarus flagIrish flagIcelandic flagMacedonian flagMalay flagPersian flag
    Tag Cloud
    Sponsors
    Recent Comments
      Archives
      Link with us

      IT Solutions Knowledge Base

      Visitors

      Today Visitors: 132
      Currently Online: 10

      256-bit Secured



Changing Windows Remote Desktop Port (RDP)
Home » Security, Windows Security » Changing Windows Remote Desktop Port (RDP)
By Glafkos Charalambous | No CommentsLeave a Comment
Last updated: Tuesday, November 11, 2008

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:

Change RDP Default Port

Change RDP Default Port

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.

VN:F [1.9.3_1094]
Rating: 10.0/10 (3 votes cast)
VN:F [1.9.3_1094]
Rating: 0 (from 0 votes)
Changing Windows Remote Desktop Port (RDP), 10.0 out of 10 based on 3 ratings
  • Digg
  • Facebook
  • Technorati
  • del.icio.us
  • StumbleUpon
  • Sphinn
  • Reddit
  • Google Bookmarks
  • Wikio IT
  • Slashdot
  • co.mments
  • Fark
  • Fleck
  • LinkedIn
  • Ma.gnolia
  • MySpace
  • Propeller
  • Print
  • email

Comments

There are no comments just yet

Leave a Comment

Add your picture!
Join Gravatar and upload your avatar. C'mon, it's free!