Contents

Better iPhone Tethering

For Mac OS X

Slashdot   Slashdot It!

3. Setup SLiRP

Take a breath...The worst has passed. The time has come to install iPhone SLiRP, the magic bullet of iPhone tethering.

Download iphone_slirp.zip and extract the contents to the root of your boot drive. You should have two files: "slirp" and "tether.sh" sitting right inside the drive titled "Macintosh HD" on most macs.

Step 1: Install SLiRP on iPhone

If you're still SSH'd into your iPhone, type exit and hit return. Now we'll copy SLiRP to your iPhone. Do the following in the terminal:

scp /slirp root@YOUR_IPHONES_IP_ADDRESS:/usr/bin/

Now SSH into the iPhone again. Just for kicks, we'll do it sudo so we again see the phone lets us in with no hassle. If it asks for a password or a passphrase, something is wrong and you need to return to the previous page and do the key over again being more careful.

sudo ssh root@YOUR_IPHONES_IP_ADDRESS

Once in, we're going to chmod SLiRP to have execute permissions. Do:

chmod +x /usr/bin/slirp

And with this, we're done with your iPhone for a while. Type exit and press return, and set it aside for a rest.

Step 2: File prep on your mac

While you don't need to understand much about what ppp is, it will be helping you considerably. PPP is already on your mac, but we need to give it an empty configuration file to appease it, else we'll get an error that will throw us off later. We'll use touch, a simple command that will create a blank file for us. Run the following in terminal on your mac: (NOT SSH'd into iPhone)

sudo touch /etc/ppp/options

Easy. Now we'll give execute permissions to tether.sh, the shell script you'll be using to fire up tethering when you wish to use it. Do:

chmod +x /tether.sh

We're very close

Step 3: Network Configurations

The final configurations we'll be making involve setting up an ad-hoc network with specific IP addresses for iPhone and your mac, so tether.sh knows where everyone is. If you've done the older proxy tether method you're likely familiar with a lot of this.

On your mac, create a computer-to-computer network. I call mine "tether", but you can call it anything you please. It is easiest to leave encryption disabled, but you can use it if you please. This network can be created from the airport menu on the top right of your screen. Once this network is created, connect to it from your iPhone.

Next you will need to set up the following static IP and Subnet mask on your iPhone and Macintosh. This can be done in system preferences' Network panel on your mac, and the wifi settings page on your iPhone.

Macintosh:
IP: 192.168.1.100
Subnet Mask: 255.255.255.0

iPhone:
IP: 192.168.1.101
Subnet Mask: 255.255.255.0

Leave all other options empty on both! With this done.....we're ready! If you've carefully followed all other instructions and are feeling confident/lucky, go to the next page.