When Leopard was released, one of the most enticing new features was Back to My Mac, a tool that made it possible to access your home computer remotely—including remote control of your desktop and access to your files—no matter where you are. The catch: It requires a $100 yearly subscription to the lackluster .Mac service. Right now I'm working from my laptop in Austin, and I've got the same full access to my home PC in Los Angeles as Back to My Mac offers, but I didn't spend a dime on .Mac to get it. That's because all of the tools you need to roll your own Back to My Mac are already built into Leopard for free out of the box—you just need to know how to access them.
NOTE: This week I'm focusing on gaining full access remotely using a Mac, but the same tools, which I'll highlight in another post, exist for Windows users.
Before I step you through all of the work involved, it seems prudent to give you a slightly better idea of the end result. Once you've completed the setup I'm detailing below, you'll be able to remotely control your home computer like you're sitting directly in front of it (if you're familiar with VNC, that's all it is), access any of the files on your computer's hard drive just like you would if you were on the same network (or sitting at that computer), and pretty much anything else (provided it's not too graphic-intensive). The main draw is this: When you're done, you should be able to do virtually anything remotely that you could do sitting in front of that computer.
Set Up Faux Back to My Mac Features on Your Home Mac
To get started setting up your faux Back to My Mac, you need to fire up Leopard's saucy new Sharing preference pane from the System Preferences. From here, we'll enable remote screen sharing and set up an FTP server that will allow us to remotely access files on the computer.
Enable Screen Sharing: To enable Screen Sharing, which is probably the marquee feature of Back to My Mac for most users, just click the checkbox next to Screen Sharing in the Sharing prefpane. You could stop there, but I prefer to set up access for "Only these users," and set it to my user account. This means that when you're accessing your screen remotely, you'll log in with the same username and password that you use to log in to your computer.
Set Up FTP Access: First, tick the checkbox next to File Sharing. By default this just enables simple file sharing on your home network, so you've got a few more steps to enable the FTP that we'll be using in our faux Back to My Mac setup. Next, hit the Options button, tick the checkbox next to Share Files and Folders using FTP, and then hit Done. (As you can see, there's a small warning under the FTP option alerting you that your FTP logins and file transfers are not secure. You still need a password to access the files, but the transfer of the files themselves is not encrypted.)
When you return to the Sharing pane, you'll notice that you're able to choose which folders are shared. You can set it to share the root of your hard drive if you want to share everything on your computer, or you can just go through and choose a few important folders you want to make sure you've got access to. Again, you can choose which users are able to access your files, as well as what kind of access each user-type has (read and write, read only, and write only). Choose whichever makes more sense for what you want.
With that, you've completed most of the setup on the computer you want to access. But before this faux Back to My Mac is ready for primetime, there are a few more steps you'll probably want to take.
Enable Access from Outside Your Network
If you connect your computer to the internet through a router (which most likely you do), you need to do a couple of things to enable easy access to your setup from outside your home network. The VNC (screen sharing) and FTP (file sharing) portions of our setup both work by accessing certain ports on your home computer. This means you need to set up port forwarding on your router so that whenever you need to access your computer from outside your home network, your router knows which computer to send the requests to. If this sounds intimidating, don't worry—it's really not that difficult.
We've covered port forwarding several times before, so I won't go into detail on how to tackle port forwarding. Instead, I'll just focus on what ports you need to forward. For Screen Sharing, the default port if 5900, and for FTP, the port is 21.
NOTE: If you haven't already, I'd highly recommend setting up a static local IP address for the computer you want access to. Routers assign IP addresses to the computers on your local network, and when these addresses expire, there's a chance your computer may be assigned a different IP address—which would break your port forwarding.
Finally, to really ease the access to your faux Back to My Mac setup, you should do yourself another huge favour and assign a domain name to your external IP address. Doing so will allow you to access your setup through an easy-to-remember domain of your choosing like backtomymac.selfip.com rather than remembering a series numbers like 76.123.456.789.
Using Your Faux Back to My Mac
So now that you've done all the legwork, how do you make use of it all? If you've followed all of the setup, screen sharing and file access is simple.
Access Screen Sharing: Let's assume, in true Back to My Mac fashion, you're working on your Mac laptop away from the desktop Mac you want to access. To connect to your Mac, you need to find the Screen Sharing app on your laptop (this is the very same Screen Sharing app that Back to my Mac uses when it does remote screen sharing). It's not installed in the Applications directory, so you should head to
/System/Library/CoreServices (where it's located by default) and copy Screen Sharing.app into your Applications folder for easier access.
When it's time to access your home PC, run the app, then enter the address of your home computer (either the external IP address or the domain you set up above). After a second, Screen Sharing should display an exact replication of your home desktop, and you can use programs or check an email on your home computer just like you would if you were sitting in front of it.
NOTE: If you want to add a bit more functionality to the Screen Sharing app, like an advanced toolbar that isn't available by default, here's how.
Access Your Files: To access any of the files on your home computer, you've got a couple of options. If you're really interested in using Finder so that you're really rolling with true Back to My Mac style, you can; just open Finder, click on Go -> Connect to Server, enter in the address of the FTP server you set up above (for example, ftp://backtomymac.selfip.com:21), and then enter your login information. It even handles Quick Preview on those remote files.
In reality, Finder isn't the best way to connect to and browse your filesystem over FTP. You're better off using an FTP client like the very popular freeware Cyberduck. Just give it the address you set up, your username and password, and you're there.
It's all the accessibility of Back to My Mac with none of the cost. Plus, after you've put in the legwork setting it up, it's super-simple to connect to remotely connect to your home computer.
Keep in mind that this set up doesn't do absolutely everything that Back to My Mac does (namely, this simple setup doesn't have the advanced encryption options and clearly isn't a zero configuration setup), but the idea here is that after taking a few simple steps, you can enable most of the best features of Back to My Mac. To one-up Back to My Mac, you may even want to set up Wake-on-LAN with your Mac so that your computer only turns on when you need to use it, saving money and energy.
If you roll your own version of Back to My Mac, let's hear how you did it in the comments.
Adam Pash is a senior editor for Lifehacker who refuses to pay for anything he can't get for free. His special feature Hack Attack appears every Wednesday on Lifehacker AU.