Peter Stagg Dot Com

Welcome to PSDC! A site comprised of material related to my work and avocations, such as photography.

Ad-Hoc Network an iPod Touch (iPhone) via a Mac Laptop

For me, WiFi is what makes the iPod Touch a toy worth having. Take it away and you have a very low capacity Video/Audio player. On my home network the Touch’s WiFi works like a wombat digging a burrow. At work; however, WiFi devices require a VPN client and the Touch apparently does not have one.
My next thought was “what if I run up an ad-hoc airport network, would the Touch be able to connect to that.” The theory was sound enough, but in practice it looked, at first, as if that wombat wouldn’t hump. Then I read Rohit Amarnath’s article on his analytics blog. This outlined how to share a PPPSerial network connection with an iPhone using Sustainable Softworks’ IPNetShareX. With some tweaking I’ve been able to modify Rohit’s instructions and get my MacBook Pro to share its ethernet connection via an ad-hoc AirPort network with my iPod Touch.

What you need:

  • Required: IPNetShareX from Sustainable Softworks
  • Useful: IPNetMonitorX from Sustainable Softworks

How to do it:

Download and install IPNetShareX (I found I had to restart my machine before the application would work).

Run IPNetShareX and set the following settings:

  • Subnet Mask: 255.255.255.0
  • Router Address: 10.0.2.1

N.B. Safe addresses to use are in the 192.168.x.x and 10.0.x.x range. [ref]

  • External Network Interface: Built-in Ethernet
  • Internal Network Interface: AirPort

Check the following items:

  • Preserve Ports
  • Use Sockets
  • Create Aliasing Log

And unchecked the following:

  • Deny Incoming Requests
  • Create Denial Logs
  • Dynamic IP Binding
  • Local Caching Name Server

ipnetsharex-settings.gif

Next; make sure AirPort switched on. When it is, click the AirPort icon in the menu-bar and select ‘Create Network’.

airport-menu.gif

Give the network a name and set the encryption options if need be (I don’t think I’ve gotten encryption working yet – you may want to try it without first). Hit the OK button. Your ad-hoc (computer-to-computer) AirPort network should now be running.

computer-to-computer.gif

Return to the IPNetShareX application and click the ‘Start Internet Sharing’ button.

Now turn to the iPod Touch itself.

Go into settings, then Wi-Fi and switch Wi-Fi on if it is off.

Choose the Network you just created from the list of available networks to establish a connection.

wi-fi-networks.gif

Touch the little round button with an arrow in it next to your connection to go into its preferences. Go to the static tab and set the following:

  • IP Address: 10.0.2.211

This can be any IP address in the same range as you set IPNetShareX to except the one IPNetShareX is using.

  • Subnet Mask: 255.255.255.0

Same as in IPNetShareX

  • Router: 10.0.2.1

The same Router Address you used for IPNetShareX

network-settings.gif

Next you need to set the DNS to the same range as your networked computer is using. If you don’t know what this is, you can use you can use the DHCP Lease tool in IPNetMonitorX to find it. It will look something like this ‘140.198.1.66, 140.198.9.66’.

dhcp-lease.gif

Finally, if your network uses a proxy you will need to set up the HTTP proxy settings underneath the IP Address settings. In my case I found that the automatic proxy settings did not work, but the manual settings did.

That’s it you should now be able to open Safari and surf the web from your iPod Touch. One point to note however is that I couldn’t use the YouTube application on my touch in this situation – it must use a different port from the standard port 80 of HTTP. I could use the iTunes store though.

Another way to test if you have everything set up right is to open the terminal on your host computer (laptop) and ping the IP Address you gave to the Touch. A successful result should look like this:

ping-touch.gif

5 Responses to “Ad-Hoc Network an iPod Touch (iPhone) via a Mac Laptop”

  1. David Doukidis Says:

    You can also share just by ticking Internet Sharing under Sharing in System Preferences.
    Select to share from Ethernet to Airport.

    It doesn’t require any additional software.

    iPod Touch Software 1.1 did not work with our proxy server. 1.1.1 fixed the problem.

  2. PSDC Says:

    That seems to depend very much on your network set-up; based on my research from the net (see the analytics blog link above). In some reported cases checking internet sharing will work briefly then stop after a minute or so. For me, in my set-up, the additional software works every time without fail.

  3. alx Says:

    What about a pc running vista?

  4. PSDC Says:

    If I get a chance to I may take a look at this but I’m not a regular Vista user. Its on my WinTel box but I gave up on it in disgust about a month after installing it and went back to XP.

  5. Adam Says:

    Settings -> General -> Network -> VPN is where you can find the VPN settings for the iPod Touch

Leave a comment

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>