Link to home
Start Free TrialLog in
Avatar of brokeMyLegBiking
brokeMyLegBiking

asked on

Remote desktop to two different boxes inside my home network.

I have two computers at home. Currenly when I want to remote desktop into computer#2, I have to first remote desktop into computer#1 and then from there go to computer#2. How can I set up my home network so that I can get to both #1 and #2 from the outside world?

I have a linksys wireless G router. I have experimented with port forwarding, but I have not had any luck. I pointed 3389 to computer #1 which works fine, and 3390 to computer#2, but I can't get directly to #2.

Is there a way to change the port that remote desktop uses?

This would be a HUGE help to me, thanks so much!
Avatar of Magus_opus
Magus_opus


Normally almost any home router allows you to also specify which port you would like to use as a trigger from the outside.
Let us assume an example of the following setup:
Computer 1 - 192.168.254.2
Computer 2 - 192.168.254.3
External IP: 99.99.99.102

Both are running remote desktop (port 3389 TCP, I believe)

In remote desktop, when you simply type in the IP address or hostname of the computer you want to connect to, remote desktop automaticlaly assumes you mean port 3389.  So when you type 99.99.99.102 (the example external IP), it will automatically connect to port 3389 and whatever computer this port was set to connect to.

What you can also try to do, is set both computers to have a different external "trigger" port.
Port triggering gives you the advantage of assigning a different external port from the internal port.

In Linksys routers they have two columns, "triggered range" and "forward range"
Set forward for both computer to be 3389 (lets say this will be computer 1).
On one of the computers, you'll set the triggered range to be 3390 (lets say computer 2).

In order to connect to computer 2, you should now type in the hostname/IP as:
99.99.99.102:3390 (the colon indicates you are going to specify a port number)


See if this works. (I can't remember off the top of my head if there is something that blocks you from being able to specify the port you would like to connect to remotely when using MS Remote Desktop.  If so the next best bet is to run UltraVNC or some other remote viewing software that allows you to specify the port.)

Hope this helps!
In short you should have something like this.

IP                            Trigger                   Forward
192.168.254.2        3389-3389             3389-3389    
192.168.254.3        3390-3390             3389-3389

To connect to computer 1:
Hostname/IP - 99.99.99.102

To connect to computer 2:
Hostname/IP - 99.99.99.102:3390


An alternate option, install Hamachi on all the machines you mean to connect externally using remote desktop.

Log them all in, and have them join the same hamachi group.
Use the Hamachi assigned IP address to connect (this also gives you the benefit of encryption, but in this example you would NEED to have Hamachi on any computer you wished to connect with!)
ASKER CERTIFIED SOLUTION
Avatar of Keith Alabaster
Keith Alabaster
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of brokeMyLegBiking

ASKER

This is just really fantastic! I could kiss you guys if you were here. I have been wanting do set this up for a really long time. You are fantastic! haleluja and cheers!!!!!

I am going to sleep well tonight knowing I don't have to chain-remote-desktop! I can remote desktop directly into all my boxes (I have about 10 of them) sweetness!
Just ensure that the port numbers that you use are NOT used by anything else.
how do you make sure that the port numbers are not inuse by anything else?

Is that a net stat command line ?
netstat -an
but use ports up around that area 3389, 3390 etc
how about 4420 and 4421? That's what I planned to use
if netstat -an does not show the ports as established or listening then they should be OK.

http://www.iana.org/assignments/port-numbers
It turns out that I did not understand port triggering. That is just a special instance for certain remote applications that respond on a different port than you send the request on. So that doesn't help me here since I am trying to open a port and leave it open for inbound requests from the internet.

So the key and I am verrrrrrryyyyyy grateful for keith for showing me the light on this one, is to chnage the remote desktop port from the default of 3389 to something else.
Welcome and thanks :)