Monday, December 13, 2010

Chicken of the VNC

Chicken of the VNC

Share

Chicken of the VNC A few people have written in, asking how to remote control a Mac. It couldn’t be much easier, especially if you’ll be doing the controlling from a computer on the same network as the machine you want to control. The server component is built into OS X. The client component (on the computer you will do the controlling from) can be downloaded here.

Click here to skip ahead to the screencast.

If you plan on controlling a machine from across the Internet there’s an extra step. Let’s look at both scenarios:

Both computers on same network.

  1. Configure the machine you want to control (the server) to allow VNC access. See the screencast for details.
  2. Open Chicken of the VNC and connect to the ip address of the server. Instead of the ip address you can have Chicken of the VNC use Bonjour to show you servers on your network.

Controlling a machine from across the Internet.

  1. Configure the machine you want to control (the server) to allow VNC access. See the screencast for details.
  2. From the server, go to the web site http://whatismyip.com and make a note of the ip address. This is how your home network is seen on the Internet.
  3. Go to the router of the network your server is on. Configure port forwarding to allow port 5900 through to the server. See the screencast for details.
  4. At the coffee shop, Open Chicken of the VNC on the client and connect to the ip address noted in step 2. Bonjour won’t help you across the Internet - you may as well turn it off. And you can’t use the server’s actual address. You have to use the address of the router. The router will pass the request to the server, based on the port forwarding you set up in the previous step.

If you don’t have a router at home your Mac is probably connected directly to the DSL/Cable Modem. In that case, the server’s address and the http://whatismyip.com address are likely the same. (Some modems act as firewalls, in which case they could be different!) Use that address from the coffee shop.

Consider getting a router. For forty dollars you can add an important layer of security and the convenience of wireless access.

More to think about:

  • VNC is not notably secure. You’re relying on a single password to keep intruders out.
  • Consider running third party VNC server software, like OSXvnc. It allows you to run the server on a port other than 5900, helping to hide your service from hackers.
  • You can use RealVNC on Windows computers to remote control your Mac instead of Chicken of the VNC. There’s a free Personal Edition.
  • There are other ways, using far more secure tools, to remotely control your Mac. Murphy will cover tools like ssh next week. In the meantime, brush up on your Terminal skills!

More on ports: A port number is what an application uses to identify itself to the network. There is all kinds of traffic flowing to your networked computer. The port directs the traffic to the proper application. Traffic finds the computer by its ip address, then goes on to find the right application by its port address.

No comments: