Remote Desktop through DHCP!

James Bond

Diamond Member
Jan 21, 2005
6,023
0
0
I know a lot about what Remote Desktop can do and a lot about networking, however, I know very little about setting Remote Desktop up.

I understand it should be as easy as connecting to an IP and domain, but I would like to connect to the computer I'm on currently from other locations. The only problem is that my computer is connected through a router (with DHCP). Obviously I know my WAN and LAN IP's, but how do I incorperate that into RD?

Thanks!
 

scottws

Senior member
Oct 29, 2002
468
0
0
Well, there's no way around that with DHCP enabled. If you want your computer to accept it's IP through DHCP configuration, you'll have to accept that it's possible that your computer might reboot for some reason sometime while you're not there and get a new IP, and then your NAT settings in your router for Remote Desktop won't work. Well they'll work, but they'll point to an IP that is either not associated with a computer, or is associated with a computer other than the one that has RD set up.

Here's what I did:

1) Told my router to only give out IP addresses 192.168.2.4 - 192.168.2.40 through DHCP.
2) Told my router to forward requests directed at port 3389 to IP address 192.168.2.3.
3) Configured the TCP/IP protocol settings on my PC for static IP (disabled automatically getting it via DHCP):
3a) Set my IP to 192.168.2.3.
3b) Set both gateway and DNS to 192.168.2.1.

This prevents the router from assigning the IP via DHCP that I configured in the port forwarding/virtual server part for my PC (192.168.2.3), yet still allows other PCs and devices to obtain their IPs via DHCP.

You'll also need to allow remote desktop connections.

1) PC software firewall
1a) Windows firewall - If on, make sure there is an exception enabled for Remote Desktop
1b) 3rd party - Allow connections on port 3389
2) You need to add which user account(s) you want to connect to remotely to the Remote Desktop Users group. (or maybe it's just Remote Users).
3) The account(s) that you want to be able to connect to must have a password enabled. I HIGHLY recommend a very strong password, including random characters in random places, numbers, symbols, caps and lowercase.
4) Remote Desktop needs to be enabled. You get to this by the System applet (in Control Panel or by right clicking My Computer | Properties), Remote tab.

If you don't want to allow remote login access for users in the Administrators group (including the Administrator account itself), you need to change a setting in the local policies MMC snap-in. Administrators by default are allowed to connect even if they aren't in the Remote Desktop Users group. I'll look up the specific location of this setting later when I get a chance.

To connect remotely, you just type your external IP in the Remote Desktop client and hit connect. A request is automatically sent to that IP on port 3389. The router receives it and sees that it should send requests coming in on this port to the configured IP (in my case 192.168.2.3). The RD host computer recieves the request, assuming an exception is enabled on the host PC's software firewall, and assuming RD is enabled, ititiates the RD session by asking for the account log-in information. Then you just type in the username and password for the account you want to connect to. If this account is in the RD Users group or the Administrators group (default behavior), then it will log you in, and it is basically as if you are sitting there at the computer, albeit slower.

Sorry if it sounds dumbed down or obvious to you. I don't know your specific level of knowledge, so don't take it as a personal insult. I just want to be as helpful as possible.
 

RebateMonger

Elite Member
Dec 24, 2005
11,586
0
0
Many DHCP servers offer the ability to set an IP reservation, using the client's MAC address as the determinant. That way, you can set the client to get an IP address automatically, but it will always get the SAME IP address when it logs into your home/office.
 

Booshanky

Member
Dec 17, 2001
124
0
0
Here's a similar question I thought I'd post here since it's topical. Is there any way around a dynamic IP? I connect to my work PC using radmin all the time, but we've got static IP's at the office so it's really easy.

I connected to my home a few times from work, but then of course my IP changed and i'd forgot to check what it was before I went to the office, so I was sol till I could get home and figure out what my new home IP was.

Any way you guys can think of for me to remotely be able to figure out what my IP is at home?
 

JackMDS

Elite Member
Super Moderator
Oct 25, 1999
29,528
415
126
Originally posted by: Booshanky
Here's a similar question I thought I'd post here since it's topical. Is there any way around a dynamic IP? I connect to my work PC using radmin all the time, but we've got static IP's at the office so it's really easy.

I connected to my home a few times from work, but then of course my IP changed and i'd forgot to check what it was before I went to the office, so I was sol till I could get home and figure out what my new home IP was.

Any way you guys can think of for me to remotely be able to figure out what my IP is at home?
Look here option2 or 3, Connetcting to Computer/Network/Server through the Internet?

:sun:

 

Smilin

Diamond Member
Mar 4, 2002
7,357
0
0
Originally posted by: Booshanky
Here's a similar question I thought I'd post here since it's topical. Is there any way around a dynamic IP? I connect to my work PC using radmin all the time, but we've got static IP's at the office so it's really easy.

I connected to my home a few times from work, but then of course my IP changed and i'd forgot to check what it was before I went to the office, so I was sol till I could get home and figure out what my new home IP was.

Any way you guys can think of for me to remotely be able to figure out what my IP is at home?

Jack had a good link above. DynDNS.org and some others let you put a DNS name to your dynamic IP. Most modern cable/DSL routers are clever enough to talk to DynDNS and automatically update things.
 

scottws

Senior member
Oct 29, 2002
468
0
0
Originally posted by: RebateMonger
Many DHCP servers offer the ability to set an IP reservation, using the client's MAC address as the determinant. That way, you can set the client to get an IP address automatically, but it will always get the SAME IP address when it logs into your home/office.
Ah yes, that's true. I believe the WRT54G can do this. My Belkin can't, hence why I set up a static IP for myself.

As far as they dynamic IP provided by the ISP... I lived at a house for almost two years and had Roadrunner. Our IP never changed once, seriously. We never had power failures and never had to reboot the modem.

Now where I live we have Zoomtown, again dynamic IP, and the IP hasn't changed in the past month or so I've been keeping track of it.
 

Booshanky

Member
Dec 17, 2001
124
0
0
Super cool, thanks guys. I'm going to give that a shot when I get home. I've got a WRT54G so I'm sure there shouldnt be a problem.
 

JackMDS

Elite Member
Super Moderator
Oct 25, 1999
29,528
415
126
WRT54G as is cannot reserve IP in DHCP.

Some of the 3rd party "Flashroos" can do it.

:sun: