Advertisement
Tcip

Change the listening port for Remote Desktop

Mar 28th, 2015
616
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.23 KB | None | 0 0
  1. [HOW TO CHANGE THE LISTENING PORT FOR REMOTE DESKTOP]
  2.  
  3. [DESCRIPTION]
  4. A short guide to show you, how you can change the default port number 3389 in Remote Desktop. So you can remote more units.
  5.  
  6. [TESTED ON]
  7. - Windows 7 (x86 and x64)
  8. - Windows 8 (x86 and x64)
  9. - Windows 8.1 (x86 and x64)
  10.  
  11. [HOW TO]
  12. The step to change the default port is pretty simple. All you need to do. Is to open your Windows Registry Editor in your computer. {Note; In Windows 8.1 or later, right-click or tap-and-hold the Start button and then choose Run. Prior to Windows 8.1, Run is most easily available from the Apps screen
  13.  
  14. In Windows 7 or Windows Vista, click on Start.
  15.  
  16. In Windows XP, click on the Start button and then click Run.}
  17.  
  18. And go to this section: [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp]. When you are in the root directory: RDP-Tcp. Go to the right window and look for a post called: PortNumber. Double click on it, and a small window will appear. It's inside here we have the option to change the post value. Click on "Decimal" radio selection under the Base category. Now you will see the text in the field have change from: d3d to: 3389. Change the Value Data from 3389 to whatever port you would like to use.
  19.  
  20. [WHAT YOU SEE, SHOULD LOOK LIKE THIS]
  21. Name Type Data
  22. PortNumber REG_DWORD 0x00000d3d (3389)
  23.  
  24. [ADVANCED USER]
  25. If you are familiar with Registry Editor. You can create a .reg file. That will change the port number without needing to go inside the Registry Editor. To do this, you need to create a .reg file. This you do, by open your notepad and paste the code that is below. The hard part is to convert the Decimal into Hexadecimal. A neat trick to do this, is to use Windows calculator. Set it on Programmer mode. Select "Dec" and write a port number you want to use. Let's say we want to use port: 1234. Now click on "Hex". And the program will convert it for us. The value now should be "4D2". This is the hex you need to put in to your .reg file. If you don't want to use the Windows calculator. You can Google for "hexadecimal converter".
  26.  
  27. Windows Registry Editor Version 5.00
  28.  
  29. [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp]
  30. "PortNumber"=dword:000004d2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement