How to access Mac OS X screen sharing from outside my local network?

Posted on


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

Mac Mini 1 (Local IP: Mac Mini 2 (Local IP:

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:, and I can route: /

Is that possible?


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: -->

and -->

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.

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.

Leave a Reply

Your email address will not be published.