Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have a setup of two Mac Mini, connected to a router with static IP.

Mac Mini 1 (Local IP: 192.168.0.99) Mac Mini 2 (Local IP: 192.168.0.100)

I use the built-in screen sharing for Mac OS X.

When I connect thru WAN, I want to be able to reach both of the computers. Like if my ip was: 85.85.85.85, and I can route: 85.85.85.85:1 / 85.85.85.85:2

Is that possible?

share|improve this question

3 Answers 3

up vote 1 down vote accepted

Yes it is possible.

You need to set up port forwarding in your Router.

Depending on your Router's make/model, the setup may vary, but the basics are the same regardless.

I would choose a port way north of 1 or 2.

Both computers will be listening on port 5900, so you'd set something up like:

85.85.85.85:15000 --> 192.168.0.99:5900

and

85.85.85.85:16000 --> 192.168.0.100:5900
share|improve this answer
    
Ok. Sounds logical! So I can port forward (eg. 85.85.85.85:15000 to local IP 192.168.0.99) and simply type in 85.85.85.85:15000 from another computer (and netword) to get it work? –  Centrum Steve Jun 21 '12 at 13:03
    
@Mark That is correct. Don't forget to add the :5900 to the local IP. Also, it occurs to me, if you're trying to connect to your minis from another of your macs, you can use the "back to my mac" service with no router configuration, as long as you are logged into the same Apple ID on each one. –  JoshP Jun 21 '12 at 13:05
    
Awesome! Didn't know about the Apple ID "back to my mac". I'm gonna google that now :) –  Centrum Steve Jun 21 '12 at 13:08
    
Is there documentation anywere that says indicates osx uses port 5900 for "Back to My Mac"? –  CharlesHolbrow Apr 30 at 0:55
1  
@CharlesHolbrow, Back to My Mac does not use port 5900. It's actually a service that runs on port 443 (https). Check out this Apple support document –  JoshP Apr 30 at 12:10

You cannot reach both computers on the same port but you can configure the router to pass different ports to different computers.

So for web usually on port 80 you can put on machine's server on that and the other on say port 81 or you can set the router o pass port 80 to port 80 on the first and port 81 to port 80 on the second.

share|improve this answer

Have you enabled the 'back to my mac' feature in the iCloud settings? That probably will work without adjusting your router settings.

Otherwise try searching for a UPnP setting in your routers setting and make sure it is turned on.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.