Overclock.net › Forums › Software, Programming and Coding › Networking & Security › How To: Remote Desktop and Routers/DynDNS
New Posts  All Forums:Forum Nav:

How To: Remote Desktop and Routers/DynDNS

post #1 of 41
Thread Starter 
How To: Remote Desktop Using Dynamic DNS, and Multiple Computers

Ben Dattilo, Overclock.net


Ever wanted to remote to your computer, but can't because it is behind a router, firewalled, or you can't remember the IP? This guide will show you how to remote to a compute behind a router, to multiple computers behind a router, and how to assign a hostname (ex. mycomputer.site.org) to your computer so you can always connect to it, no matter where it is connected, or what the IP is.

This does work on Windows XP in the exact same way, I just only have Vista so all the screens are Vista screens!

Also, only Vista BUSINESS and ULTIMATE have Remote Desktop capability. There is a way to activate it in Home Premium however- Google is your friend


Part A: Prepare the OS for Remote Desktop

Step 1: Turn on remote desktop connections
  • To do this, enter the control panel, and select 'system'. In the system window, there will be a link labeled 'Remote Settings'. Enter the 'Remote Settings' configuration panel.


  • In the 'Remote Settings' panel, under the 'Remote' tab, make sure that 'Allow Remote Assistance Connections to this Computer' is selected at the top, and 'Allow Connections From Computers Running Any Version of Remote Desktop' is also selected. This will allow you to remote from an XP machine to a Vista machine, and vice-versa.



Step 2: Edit the Remote Desktop Port
*Note*: Editing the registry is potentially dangerous, if you are not familiar with registry editing, this step is not recommended.
  • To allow connections to multiple computers behind a router, each computer will need to have a different Remote Desktop listening port. For example, I have a desktop and an HTPC behind a router that I RD to. My desktop uses the default port 3389 to connect, and my HTPC uses port 3390. If I add a third computer, I would assign it port 3391, and so on.
  • To change the port, we will need to make a registry edit. Open the registry editor, by hitting Windows key-R to open the run window, and type 'regedit' to open the editor.

  • In the editor, navigate to HKEY_LOCAL_MACHINE\\System\\CurrentControlSet\\Con trol\\TerminalServer\\WinStations\\RDP-Tcp\\PortNumber and double click on the key.


  • When the key box opens, select 'decimal', and change the default port (3389) to a different port.


  • Close this box, exit out of the editor, and the port will have been changed.

Step 3: For Routers-Configure Port Fowarding
  • To be able to connect to a computer behind a router with a certain port, that port will have to be forwarded to the host machine.
  • Each computer behind the router will need a different port for Remote Desktop, and each different port will need to be forwarded in the Router.
  • Due to the vast number of different routers, I cannot accurately write instructions for all makes and models. For information on how to forward with your router, please visit www.portforward.com

Part B: Configure Dynamic DNS Services

A Dynamic DNS service is a Windows service that can be installed to assign a hostname to your computer, and then automatically update an online database to match your current IP address. For example, I have the hostname bdattilolaptop.homeip.net set up for my laptop. When I take my laptop out and connect to a wireless network, I get assigned an IP, and the DynDNS service will update the hostname registry online with my current IP. Therefore I am able to remote to my machine, no matter where I am.

Step 1: Register for Dynamic DNS
  • To set up a Dynamic DNS service, we will use the free tools provided at www.dyndns.com. Travel to this site, and select 'Create Account' in the upper right hand corner of the site.


  • A DynDNS account only requires an e-mail address, and registering is pretty painless.


  • Once you are registered, login and select the 'Services' button at the top of the page. On the services page, select 'Dynamic DNS'


  • In the Dynamic DNS page, select 'Get Started' on the upper right hand side of the page.


  • The next page should be titled 'Add New Hostname'. Here is where you get to choose the domain name for your computer. There are many different domains that you can choose from that dyndns has registered (I use homeip.net and dyndys.tv), and there is no difference in any of them. It is just a name. Personally my favorite is 'kick-ass.org', but professionalism's sake, I could not use it!
  • Type in the host name you want, and select 'Host with IP address' under service type. Also click 'Use Auto Detected IP Address xxx.xxx.xxx' to assign your IP now.


  • After all your information has been entered, select 'Create Host'.
  • This should now take you to a list of your Dynamic DNS hostnames. If you want to add more, just click 'Add New Hostname' in the upper right hand corner of the page.
  • Your hostname is now set up! Now lets assign it to your computer.

Step 2: Configure the Dynamic DNS Service
  • Now that we have the hostname setup, we need to associate that hostname with a single machine. We will use the DynDNS updater, which runs as a Windows service to periodically update the IP database associated to your hostname.
  • Download the DynDNS updater by selecting the 'Support' tab at the top of the dyndns.com site, and clicking 'Download Now' on the upper right hand corner of the page.


  • Once the tool has downloaded, install the tool on your system. This will go though the normal Windows install steps.
  • After the updater tool has been installed, launch the updater. Select what kind of connection you have in the config windows, and then enter your DynDNS account name and password when it asks you to.


  • The updater will then prompt you to enter your host name, and select 'Yes, do automatic download' to allow the updater to download the hostnames registered to your account.


  • Select the hostname that you want to use, and select 'Next'. If at anytime it asks you about a 'Group', just insert a groupname, and remember this name if you are setting up multiple PC's


  • Once again, select 'Detect my IP' to assign your address to the host name.


  • Enable automatic IP updating, and also tell the program to install itself as a Windows service. This will make the updater completely invisible.




  • If you do see a green 'check-mark' Icon in the system tray, you can just right-click on it and select 'Exit' to never see it again.


  • You have now successfully configured the Dynamic DNS service. Restart your computer to start the service.




Part C: Remote to your Computer
  • Now that all the services have been set up, you can remote to your computer.
  • On a different computer, open the 'Remote Desktop Connection' tool, which will be located in Start-Accessories-Communications.
  • In this window, type the hostname that you assigned your computer followed by a colon and the port number you assigned in Part A.
  • If you kept the port as 3389, you will not need to input the port number.


  • If it prompts for credentials, insert the name and password you usually use to login to your machine.
  • You should now be remoted into your computer!







If you have any questions, please feel free to e-mail, IM, or PM me, and if there are any errors, let me know!

Thanks to Andrew Steffen, who introduced me to the Dynamic DNS service,and for putting up with my questions!
Optimus Prime
(13 items)
 
  
CPUMotherboardGraphicsRAM
Q6600 G0 Gigabyte P35-DS3R eVGA 8800GTS 650/2000 2x2GB G. Skill DDR2 1000 
Hard DriveOptical DriveOSMonitor
7200.10 RAID0 (640GB) Pioneer DVD +/- RW Vista Ultimate x64 Acer 22" WS + 17" LCD 
KeyboardPowerCaseMouse
Logitech G15 Silverstone OP 650 Modified P180 for W/C Razer Death Adder 
Mouse Pad
Razer Mantis Speed 
  hide details  
Reply
Optimus Prime
(13 items)
 
  
CPUMotherboardGraphicsRAM
Q6600 G0 Gigabyte P35-DS3R eVGA 8800GTS 650/2000 2x2GB G. Skill DDR2 1000 
Hard DriveOptical DriveOSMonitor
7200.10 RAID0 (640GB) Pioneer DVD +/- RW Vista Ultimate x64 Acer 22" WS + 17" LCD 
KeyboardPowerCaseMouse
Logitech G15 Silverstone OP 650 Modified P180 for W/C Razer Death Adder 
Mouse Pad
Razer Mantis Speed 
  hide details  
Reply
post #2 of 41
Good job + rep
My Rig
(13 items)
 
  
CPUMotherboardGraphicsRAM
E2180 @ 3.1Ghz @1.3v Abit IP35 Pro Rev 1.1 v17 PowerSparkle 9600GT G.SkillPQ's 2X2GB-5.5.5.15@930MHz@2.2v 
Hard DriveOSMonitorKeyboard
Intel x25-V, 4 TBs for storage Seven x64 2243BW, 2343BWX Razer Tarantula 
PowerCaseMouseMouse Pad
StealthXStream 600w Antec P182 Gun Metal Logitech G3 Black SteelSeries Experience I-2 
  hide details  
Reply
My Rig
(13 items)
 
  
CPUMotherboardGraphicsRAM
E2180 @ 3.1Ghz @1.3v Abit IP35 Pro Rev 1.1 v17 PowerSparkle 9600GT G.SkillPQ's 2X2GB-5.5.5.15@930MHz@2.2v 
Hard DriveOSMonitorKeyboard
Intel x25-V, 4 TBs for storage Seven x64 2243BW, 2343BWX Razer Tarantula 
PowerCaseMouseMouse Pad
StealthXStream 600w Antec P182 Gun Metal Logitech G3 Black SteelSeries Experience I-2 
  hide details  
Reply
post #3 of 41
WOW, nice guide, + REP!!!

Don't have a use right now, but this could be handy. I guess XP works similarly?
quad core madness
(14 items)
 
  
CPUMotherboardGraphicsRAM
Lapped Intel Core 2 Quad - Q6600 G0 Stepping Asus P5K Deluxe WiFi ATi Sapphire HD 6950 2GB Unlocked 8GB G.Skill Pi Black DDR2-800 PC2-6400 
Hard DriveOptical DriveOSMonitor
60GB OCZ Solid 2 SSD Samsung SATA 18X DVD Burner Windows 7 Ultimate x64 Dell 3007WFP-HC + 2x 2007FP in PLP 
KeyboardPowerCaseMouse
Ducky Shine Blue, MX Red Corsair HX620 620W Lian Li V1000 Plus Black Razer Mamba 2012 
Mouse PadAudio
XTrack Ripper XL Creative X-Fi XtremeMusic 
  hide details  
Reply
quad core madness
(14 items)
 
  
CPUMotherboardGraphicsRAM
Lapped Intel Core 2 Quad - Q6600 G0 Stepping Asus P5K Deluxe WiFi ATi Sapphire HD 6950 2GB Unlocked 8GB G.Skill Pi Black DDR2-800 PC2-6400 
Hard DriveOptical DriveOSMonitor
60GB OCZ Solid 2 SSD Samsung SATA 18X DVD Burner Windows 7 Ultimate x64 Dell 3007WFP-HC + 2x 2007FP in PLP 
KeyboardPowerCaseMouse
Ducky Shine Blue, MX Red Corsair HX620 620W Lian Li V1000 Plus Black Razer Mamba 2012 
Mouse PadAudio
XTrack Ripper XL Creative X-Fi XtremeMusic 
  hide details  
Reply
post #4 of 41
Kwel I was talking to my mom about this. Seens she lives in Florida and me in NJ. I told her that there is a way to do it remotely. It takes a long time to explain to my mom about steps she has to take to solve a problem. She new to the pc world.
Even tho it's good for her to learn in case she can't reach me.
I have to try this with her.
Yin
(17 items)
 
  
CPUMotherboardGraphicsRAM
Intel i7 4790k 4.7@1.265 Asus Sabertooth Z87 2 X GALAX GeForce GTX 980 HOF 4GB SLI 4x4gb G.Skill Trident X 
Hard DriveHard DriveHard DriveCooling
Samsung 850 500gigs Samsung 840  2 PNY SSD 240gig Switech H220x 
OSMonitorKeyboardPower
Windows 7 Ultimate 64bit/Windows 8.1/Windows10/... ASUS 24" Logitech G15 Consair HX750 
CaseMouseAudio
Antec P280 LOGITECH G502 PROTEUS CORE Sound Blaster Z 
  hide details  
Reply
Yin
(17 items)
 
  
CPUMotherboardGraphicsRAM
Intel i7 4790k 4.7@1.265 Asus Sabertooth Z87 2 X GALAX GeForce GTX 980 HOF 4GB SLI 4x4gb G.Skill Trident X 
Hard DriveHard DriveHard DriveCooling
Samsung 850 500gigs Samsung 840  2 PNY SSD 240gig Switech H220x 
OSMonitorKeyboardPower
Windows 7 Ultimate 64bit/Windows 8.1/Windows10/... ASUS 24" Logitech G15 Consair HX750 
CaseMouseAudio
Antec P280 LOGITECH G502 PROTEUS CORE Sound Blaster Z 
  hide details  
Reply
post #5 of 41
Thread Starter 
Quote:
Originally Posted by dr4gon View Post
WOW, nice guide, + REP!!!

Don't have a use right now, but this could be handy. I guess XP works similarly?
Yup, XP works exactly the same, just control panel layout is different.

Thanks for the comments
Optimus Prime
(13 items)
 
  
CPUMotherboardGraphicsRAM
Q6600 G0 Gigabyte P35-DS3R eVGA 8800GTS 650/2000 2x2GB G. Skill DDR2 1000 
Hard DriveOptical DriveOSMonitor
7200.10 RAID0 (640GB) Pioneer DVD +/- RW Vista Ultimate x64 Acer 22" WS + 17" LCD 
KeyboardPowerCaseMouse
Logitech G15 Silverstone OP 650 Modified P180 for W/C Razer Death Adder 
Mouse Pad
Razer Mantis Speed 
  hide details  
Reply
Optimus Prime
(13 items)
 
  
CPUMotherboardGraphicsRAM
Q6600 G0 Gigabyte P35-DS3R eVGA 8800GTS 650/2000 2x2GB G. Skill DDR2 1000 
Hard DriveOptical DriveOSMonitor
7200.10 RAID0 (640GB) Pioneer DVD +/- RW Vista Ultimate x64 Acer 22" WS + 17" LCD 
KeyboardPowerCaseMouse
Logitech G15 Silverstone OP 650 Modified P180 for W/C Razer Death Adder 
Mouse Pad
Razer Mantis Speed 
  hide details  
Reply
post #6 of 41
Sweet, yeah I just tested it actually going to the XP computer right next to me. It does kick it off and put it in the login screen, but it makes sense to limit the number of users to 1. (lol imagine having 2 cursors)....
quad core madness
(14 items)
 
  
CPUMotherboardGraphicsRAM
Lapped Intel Core 2 Quad - Q6600 G0 Stepping Asus P5K Deluxe WiFi ATi Sapphire HD 6950 2GB Unlocked 8GB G.Skill Pi Black DDR2-800 PC2-6400 
Hard DriveOptical DriveOSMonitor
60GB OCZ Solid 2 SSD Samsung SATA 18X DVD Burner Windows 7 Ultimate x64 Dell 3007WFP-HC + 2x 2007FP in PLP 
KeyboardPowerCaseMouse
Ducky Shine Blue, MX Red Corsair HX620 620W Lian Li V1000 Plus Black Razer Mamba 2012 
Mouse PadAudio
XTrack Ripper XL Creative X-Fi XtremeMusic 
  hide details  
Reply
quad core madness
(14 items)
 
  
CPUMotherboardGraphicsRAM
Lapped Intel Core 2 Quad - Q6600 G0 Stepping Asus P5K Deluxe WiFi ATi Sapphire HD 6950 2GB Unlocked 8GB G.Skill Pi Black DDR2-800 PC2-6400 
Hard DriveOptical DriveOSMonitor
60GB OCZ Solid 2 SSD Samsung SATA 18X DVD Burner Windows 7 Ultimate x64 Dell 3007WFP-HC + 2x 2007FP in PLP 
KeyboardPowerCaseMouse
Ducky Shine Blue, MX Red Corsair HX620 620W Lian Li V1000 Plus Black Razer Mamba 2012 
Mouse PadAudio
XTrack Ripper XL Creative X-Fi XtremeMusic 
  hide details  
Reply
post #7 of 41
Thread Starter 
Quote:
Originally Posted by dr4gon View Post
Sweet, yeah I just tested it actually going to the XP computer right next to me. It does kick it off and put it in the login screen, but it makes sense to limit the number of users to 1. (lol imagine having 2 cursors)....
Glad that it worked! I am no english major, so it is good to know people are able to follow my written instructions!
Optimus Prime
(13 items)
 
  
CPUMotherboardGraphicsRAM
Q6600 G0 Gigabyte P35-DS3R eVGA 8800GTS 650/2000 2x2GB G. Skill DDR2 1000 
Hard DriveOptical DriveOSMonitor
7200.10 RAID0 (640GB) Pioneer DVD +/- RW Vista Ultimate x64 Acer 22" WS + 17" LCD 
KeyboardPowerCaseMouse
Logitech G15 Silverstone OP 650 Modified P180 for W/C Razer Death Adder 
Mouse Pad
Razer Mantis Speed 
  hide details  
Reply
Optimus Prime
(13 items)
 
  
CPUMotherboardGraphicsRAM
Q6600 G0 Gigabyte P35-DS3R eVGA 8800GTS 650/2000 2x2GB G. Skill DDR2 1000 
Hard DriveOptical DriveOSMonitor
7200.10 RAID0 (640GB) Pioneer DVD +/- RW Vista Ultimate x64 Acer 22" WS + 17" LCD 
KeyboardPowerCaseMouse
Logitech G15 Silverstone OP 650 Modified P180 for W/C Razer Death Adder 
Mouse Pad
Razer Mantis Speed 
  hide details  
Reply
post #8 of 41
Nice guide, hopefully I can get this working on my computer later.
The Eye 5
(17 items)
 
Silence
(9 items)
 
 
CPUMotherboardGraphicsRAM
Intel Core i5 Z77M-D3H GTX 660 Patriot Gamer 2 Series, Division 2 Edition DDR3... 
RAMHard DriveHard DriveOptical Drive
Patriot Gamer 2 Series, Division 2 Edition DDR3... Samsung 850 EVO Western Digital Caviar Black LG Blu-ray/HD-DVD SuperDVDRW 
CoolingMonitorMonitorKeyboard
Thermalright HR-02 24" Dell U2412M 24" Samsung 2443BW LCD Logitech Illuminated 
PowerCaseMouseMouse Pad
Corsair GS600 Zalman Z9 Plus Logitech G5 Custom Cloth OCN mousepad 
Audio
Sennheiser HD600 
CPUMotherboardGraphicsRAM
Intel Atom 330 Asus AT3IONT-I DELUXE nVidia ION OCZ OCZ3P1333LV4GK 4GB DDR3 2X2GB DDR3-1333 
Hard DriveOptical DriveCoolingOS
OCZ Vertex Liteon IHOS104 4X BLU-RAY Reader Silenx iXtrema Pro Case Fan 60MM 1700RPM 14CFM ... Win7 Pro x64 
Keyboard
HP Mini Wireless Keyboard 
CPUMotherboardGraphicsRAM
PII 940 @3GHz MSI K9A2 Platinum HD3650 4x2GB GSkill 1066 (@800) 
Hard DriveHard DriveHard DriveOptical Drive
Seagate LP Western Digital Green Seagate DVD-RW 
CoolingOSPowerCase
OCZ Vendetta 2 Windows Home Server 2011 Antec CP-850 Antec P183 
  hide details  
Reply
The Eye 5
(17 items)
 
Silence
(9 items)
 
 
CPUMotherboardGraphicsRAM
Intel Core i5 Z77M-D3H GTX 660 Patriot Gamer 2 Series, Division 2 Edition DDR3... 
RAMHard DriveHard DriveOptical Drive
Patriot Gamer 2 Series, Division 2 Edition DDR3... Samsung 850 EVO Western Digital Caviar Black LG Blu-ray/HD-DVD SuperDVDRW 
CoolingMonitorMonitorKeyboard
Thermalright HR-02 24" Dell U2412M 24" Samsung 2443BW LCD Logitech Illuminated 
PowerCaseMouseMouse Pad
Corsair GS600 Zalman Z9 Plus Logitech G5 Custom Cloth OCN mousepad 
Audio
Sennheiser HD600 
CPUMotherboardGraphicsRAM
Intel Atom 330 Asus AT3IONT-I DELUXE nVidia ION OCZ OCZ3P1333LV4GK 4GB DDR3 2X2GB DDR3-1333 
Hard DriveOptical DriveCoolingOS
OCZ Vertex Liteon IHOS104 4X BLU-RAY Reader Silenx iXtrema Pro Case Fan 60MM 1700RPM 14CFM ... Win7 Pro x64 
Keyboard
HP Mini Wireless Keyboard 
CPUMotherboardGraphicsRAM
PII 940 @3GHz MSI K9A2 Platinum HD3650 4x2GB GSkill 1066 (@800) 
Hard DriveHard DriveHard DriveOptical Drive
Seagate LP Western Digital Green Seagate DVD-RW 
CoolingOSPowerCase
OCZ Vendetta 2 Windows Home Server 2011 Antec CP-850 Antec P183 
  hide details  
Reply
post #9 of 41
Definitely will try this later. It doesn't count as a peer to peer connection does it?
Crossfire to Be
(13 items)
 
  
CPUMotherboardGraphicsRAM
Phenom II X4 945 3.0 Ghz MSI 790FX-GD70 Sapphire Vapor-X Radeon HD 4870 1GB 4GB of G.SKILL DDR3-1600 
Hard DriveOptical DriveOSMonitor
500GB 5400RPM Samsung SATA DVD/CD-ROM Windows Vista Home Premium 64bit 22" Samsung @ 1650x1024, 60hz 
KeyboardPowerCaseMouse
Logitech G15 (Original) 750W Modular In-Win 80% Cert Thermaltake Tsunami - Black Logitech G5 & Razer Lachesis 
Mouse Pad
iessentials ie 
  hide details  
Reply
Crossfire to Be
(13 items)
 
  
CPUMotherboardGraphicsRAM
Phenom II X4 945 3.0 Ghz MSI 790FX-GD70 Sapphire Vapor-X Radeon HD 4870 1GB 4GB of G.SKILL DDR3-1600 
Hard DriveOptical DriveOSMonitor
500GB 5400RPM Samsung SATA DVD/CD-ROM Windows Vista Home Premium 64bit 22" Samsung @ 1650x1024, 60hz 
KeyboardPowerCaseMouse
Logitech G15 (Original) 750W Modular In-Win 80% Cert Thermaltake Tsunami - Black Logitech G5 & Razer Lachesis 
Mouse Pad
iessentials ie 
  hide details  
Reply
post #10 of 41
Curses!!

I have a RDP write up that was going to be finished tonight!


Anyways, good job bro
 
Work Lappy
(4 items)
 
 
CPUMotherboardGraphicsGraphics
Intel Core i7 960 P6T NVIDIA GeForce GTX 560 Ti NVIDIA GeForce GTX 560 Ti 
RAMRAMRAMHard Drive
G.Skill DDR3 G.Skill DDR3 G.Skill DDR3 OCZ Vertex 3 SSD 
Hard DriveOptical DriveCoolingOS
WD Backup Lite-On DVD Corsair H80 Windows 7 Pro 
KeyboardPowerCaseMouse
Logitech G15 v2 OCZ ModXStream Pro 700W Antec 300 Logitech g5 
Mouse PadAudio
Ratpad Razer Barracuda AC-1 
CPUMotherboardGraphicsRAM
Intel Core i5 0JGC48 Intel(R) HD Graphics Family Micron Technology  
  hide details  
Reply
 
Work Lappy
(4 items)
 
 
CPUMotherboardGraphicsGraphics
Intel Core i7 960 P6T NVIDIA GeForce GTX 560 Ti NVIDIA GeForce GTX 560 Ti 
RAMRAMRAMHard Drive
G.Skill DDR3 G.Skill DDR3 G.Skill DDR3 OCZ Vertex 3 SSD 
Hard DriveOptical DriveCoolingOS
WD Backup Lite-On DVD Corsair H80 Windows 7 Pro 
KeyboardPowerCaseMouse
Logitech G15 v2 OCZ ModXStream Pro 700W Antec 300 Logitech g5 
Mouse PadAudio
Ratpad Razer Barracuda AC-1 
CPUMotherboardGraphicsRAM
Intel Core i5 0JGC48 Intel(R) HD Graphics Family Micron Technology  
  hide details  
Reply
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Networking & Security
Overclock.net › Forums › Software, Programming and Coding › Networking & Security › How To: Remote Desktop and Routers/DynDNS