9 comments on “HOWTO: Tether an Android phone on Mac OS X”

  1. Max Binder

    I followed this to the letter, but when I type ~/azilink.sh into terminal and press enter, nothing happens, it just waits for another command.

    FYI, I had to create usr/local/bin. It did not exist already.

  2. Max

    OK, turns out I was missing the last few lines of code, but now after incorporating them I get:

    Tue Apr 12 13:15:57 2011 TCP: connect to 127.0.0.1:41927 failed, will try again in 5 seconds: Connection refused

  3. Max

    This is the output:

    Tue Apr 12 21:01:04 2011 OpenVPN 2.1.4 i386-apple-darwin10.7.1 [SSL] [LZO2] [PKCS11] built on Mar 1 2011
    Tue Apr 12 21:01:04 2011 NOTE: the current –script-security setting may allow this configuration to call user-defined scripts
    Tue Apr 12 21:01:04 2011 ******* WARNING *******: all encryption and authentication features disabled — all data will be tunnelled as cleartext
    Tue Apr 12 21:01:04 2011 ROUTE: problem writing to routing socket
    Tue Apr 12 21:01:04 2011 ROUTE: problem writing to routing socket
    Tue Apr 12 21:01:04 2011 TUN/TAP device /dev/tun0 opened
    Tue Apr 12 21:01:04 2011 /sbin/ifconfig tun0 delete
    ifconfig: ioctl (SIOCDIFADDR): Can’t assign requested address
    Tue Apr 12 21:01:04 2011 NOTE: Tried to delete pre-existing tun/tap instance — No Problem if failure
    Tue Apr 12 21:01:04 2011 /sbin/ifconfig tun0 192.168.56.2 192.168.56.1 mtu 1500 netmask 255.255.255.255 up
    Tue Apr 12 21:01:04 2011 /Users/Max/azilink.sh up tun0 1500 1502 192.168.56.2 192.168.56.1 init
    Tue Apr 12 21:01:04 2011 ROUTE: problem writing to routing socket
    add net 0.0.0.0: gateway 192.168.56.1
    Tue Apr 12 21:01:04 2011 WARNING: potential route subnet conflict between local LAN [192.168.56.0/255.255.255.0] and remote VPN [128.0.0.0/128.0.0.0]
    add net 128.0.0.0: gateway 192.168.56.1
    Tue Apr 12 21:01:04 2011 Attempting to establish TCP connection with 127.0.0.1:41927 [nonblock]
    Tue Apr 12 21:01:04 2011 TCP: connect to 127.0.0.1:41927 failed, will try again in 5 seconds: Connection refused

    The last 2 lines just repeat. The connection is fine and USB debug is on (EasyTether works), and Azilink just waits for a connection. Airport is off because my Airport card died a while back, which is why I’m trying this (I’m trying to use my Nexus One as a WiFi USB key)

  4. Daniel

    “FYI, I had to create usr/local/bin. It did not exist already.”

    That should be /usr/local/bin which surely exists. In term try:

    echo $PATH

    /usr/local/bin should be in your path (~/usr/local/bin won’t be).

  5. Bryce Boe » Tethering OS X Lion to Android

    [...] OS X application Tunnelblick, and a shell script to configure the tether correctly. There is also a great blog post from March of this year that is a bit more user friendly than the forum post in describing how to [...]

  6. Bryce Boe

    Just FYI, OS X Lion requires a newer version of Tunnelblick which breaks the shell script. I fixed the issue and wrote up a little post about it.

Add Comment


 *