OS X Yosemite: Use Back to My Mac
If you have an iCloud account, you can use Back to My Mac to connect to your other Mac computers over the Internet. You can share files and use Screen Sharing to control the remote computer from anywhere you are connected to the Internet. First you set up Back to My Mac on each computer, and then you can connect from one Mac to the others.

Set up Back to My Mac
-
On each computer you want to use with Back to My Mac, choose Apple menu > System Preferences, then click iCloud.
-
If you aren’t already signed in to iCloud, enter the Apple ID you use with iCloud, then click Sign In.
-
Select Back to My Mac.
-
Follow any instructions you see to turn on sharing services, select “Wake for network access,” or make any other changes necessary for Back to My Mac.
Connect to your computers
-
In a Finder sidebar, look below the Shared heading for the Mac you want to connect to.
If nothing is listed below Shared, hold the pointer to the right of Shared, then click Show.
If you don’t see the Shared heading in the sidebar, choose Finder > Preferences, click Sidebar, then select Back to My Mac in the Shared section.
-
Click the computer you want to use, then click Connect As or Share Screen.
To share services, Back to My Mac requires an AirPort Base Station or AirPort Time Capsule set up for NAT-PMP (NAT Port Mapping Protocol) or a router set up for UPnP (Universal Plug and Play). For more information, see If Back to My Mac doesn’t work.