Using your home Internet connection with your mobile phone and a Mac

After several hours of fooling around with my Nokia 6680 and some tools I’ve finally succeeded! I’m able to use my home Internet connection on my phone via Bluetooth! Now I’m able to load my phone with tons of software, data and experiment with other nice applications like Google Maps without paying 1.5 Euro per Megabyte!

Here a short step-by-step guide:

  1. Setup a Serial Port on your Mac:
    1. Open Bluetooth in your System Preferences
    2. Make sure your mobile is paired with your Mac (it should appear in the Devices pane)
    3. Go to the Sharing pane. Here you should have a Bluetooth-PDA-Sync click on it and enable Require pairing for security and make shure that your Port Type is set to RS-232.
      If you don’t have this port simply click on Add Serial Port Service and configure it as described above.
    4. It should look like this:
    5. Now run the share script (at the end of this article) to associate a pppd and share your connection
  2. Download xans Version of GnuBox
  3. Install it on your mobile.
    1. Create a new Access Point named Bt on your mobile.
    2. Set it up according to xans howto
    3. Set your mobiles IP to (or the IP you chose for it in the above script).
    4. Setup the DNS IPs of your provider.
  4. Start the gnubox application
    1. Ignore any error messages at the start
    2. Choose Options→Install→create records
    3. Choose Options→Install→copy settings from GPRS
    4. Choose Options→2box Bluetooth→Serial port
    5. Choose Options→Debug→Bring up IF
    6. That’s it! If you have any troubles, please refer to xans troubleshooting guide
    7. I’ve used Opera to test the installation. You have to configure it exactly like here .

It’s likely that some of this steps aren’t necessary, but it’s working for me.


Here the script to share your serial port with your AirPort. You may want to adapt the script according to your setup

  • IP Address (be sure to change it on both ends, mobile and Mac),
  • Serial Port name,
  • interface to share (for example the en1 interface is your AirPort and the en0 your Ethernet)
 sudo /usr/sbin/pppd /dev/tty.Bluetooth-PDA-Sync 115200 \
   noauth local passive proxyarp \ 
   asyncmap 0 silent persist :
 sudo /usr/sbin/sysctl -w net.inet.ip.forwarding=1
 sudo /usr/sbin/natd -same_ports -use_sockets -log -deny_incoming -interface en1
 sudo /sbin/ipfw add divert natd ip from any to any via en1


To unshare your port use this script:

 sudo /sbin/ipfw -f flush
 sudo killall natd
 sudo /usr/sbin/sysctl -w net.inet.ip.forwarding=0
 sudo killall pppd

or simply restart your computer.

Further info

If you still have troubles try these ressources in order: xans howto xans troubleshooting guide support forum

There’s also guide for Macs and Nokia 6600 mobiles available.

A very handy tool for debugging is the Bluetooth PacketLogger, available if you’ve XCode installed (take a look at /Developer/Applications/Utilities/Bluetooth).