Port Forwarding for Remote Desktop

0

I have two Mac notebooks at home, I have assigned them static private IPs. I have also set my router to a DynDNS address, which updates everytime my router gets a new public IP. I have enabled Screen Sharing on both notebooks.

I can successfully goto my router webpage using the DynDNS address. I understand I need to port-forward to get Screen Sharing to work from outside.

alt text

Lets assume, notebooks have private IP 192.168.1.2 and 192.168.1.3

I am kind of lost here, would appreciate some help (I need to be able remote desktop to both notebooks)

Vaibhav Bajpai

Posted 2011-01-16T09:47:44.343

Reputation: 523

please don't use tags to prefix the title, use the tags field – Sathyajith Bhat – 2011-01-16T10:25:56.953

Perhaps edit "Remote Desktop" in the title to "Screen Sharing"? ARD uses a slew of other ports that are not necessary for Screen Sharing alone. – NReilingh – 2011-01-16T17:41:12.243

Which router do you have? – David – 2014-04-06T20:57:55.380

Answers

0

Take this as a hint/rough guide as I don't know how your router works. And I don't know what port or ports screen-sharing uses so I'll just type Pstart Pstop.

This also requires you to be able to tell the screen-sharing program client to use different ports than it normally uses.

Here is my guess:

In Server IP Adress you put 192.168.1.2

External Port Start: Here you pick a number not in use for example 60100
External Port Stop : Her you put in the number 60102 + (Pstop-Pstart) to give your application a port span size it needs. (Very often the start and stop port is the same)

Internal Port Start put Pstart
Internal Port Stop put Pstop

And save.

Then you repeat for 192.168.1.3 but start with 61100 instead.

Then on the computer you want to use to connect to 192.168.1.3 and 192.168.1.2 you tell it to use you.dyndns.org adress and the ports specified above.

PS.
The ports I chose are just examples, you can use something else (keep it above 60000 to be safe)

Nifle

Posted 2011-01-16T09:47:44.343

Reputation: 31 337

0

Mac OS X uses the VNC protocol for screen sharing.

VNC uses port 5900 by default.

So forward port 5900 external to 192.168.1.2 port 5900, and port 5901 external to 192.168.1.3 port 5900.

When connecting from outside, enter your DynDNS host name. Desktop 0 (written :0) will be your first notebook, desktop 1 (:1) will be your second notebook.

On your router it looks like you put the external port in the "Custom Server" field and the internal IP address in the server IP field. See your router's manual for more details.

Mikel

Posted 2011-01-16T09:47:44.343

Reputation: 7 890

Or is the problem that your router requires internal port be the same as the external port? – Mikel – 2011-01-16T11:08:45.737

2The addresses you connect to from outside will be vnc://yourdomain:5900/ or vnc://yourdomain:5901/, not :0 or :1 – NReilingh – 2011-01-16T17:40:23.087