Mac OS X Droid Tethering (USB/Wired)


  1. droppedD

    droppedD Member

    Absolutely. I disclaimered this "I assume you know your way around a BASH prompt here (if you don't, this is decidedly not the right solution for you)." And that's for real - it's "simple" to the extent that you find VPN shell scripts to be simple. For 99% of users, that's not very simple at all; the (relative) simplicity for the average user is what PDANet's purchase price gets you, and for many people it's probably worth it.
  2. andrewrodney

    andrewrodney Well-Known Member

    FWIW, I downloaded the Mac version today and it worked like a charm on my desktop Mac, have to do the install and test no the Macbook Pro which is where I
  3. d-man

    d-man Active Member

  4. HardHat

    HardHat New Member

    This works great, and I pull some good speeds ... about 1.5mbps down, .5mbps up.

    But, after using this, I have to reboot my computer because it creates a bunch of different network adapters and my computer gets confused. anyone else experience this? solutions?
  5. droppedD

    droppedD Member

    Make sure you hit control-c in the terminal window when you're done with the azilink connection, so that it cleans up properly after itself, or run "azilink.sh down" to manually clean it up if you exited improperly.
  6. why go through all this when PDAnet is download, then plug and play. Works like a champ for my Droid Eris and my wifes Moto Droid. Didn't pay a dime. Not sure how the trial part works. But it does and it was easy.
  7. droppedD

    droppedD Member

    Well, for one thing I wrote this guide before the PDANet OS X client was released. At that point the only option for PDANet on Macs was Bluetooth DUN, which is a battery killer and sporadically wonked out on me.

    The trial of PDANet eventually expires, and will stop working for HTTPS connections after that until you shell out the $29 for it.
  8. tnlimey

    tnlimey New Member

    Way to go. After trying all other ways to reliably tether my Droid/MAC, this works and works consistantly.
    On top of that I got to brush up on my long fogotton Unix skills.
    Kudos
  9. Trytagger

    Trytagger New Member

    Great post!!!

    I had tried CTRL+c and also "azilink.sh down" but i still have still unable to connect to internet via Wifi or ethernet after that.
  10. thienedits

    thienedits New Member

    Anyone create an Applescript or Automator application for this? I tried and failed horribly as I am not a developer. Just asking because it would be nice not to have to have terminal running.
  11. bmvakili

    bmvakili New Member

    Thank you all. I followed the original post. Also, I installed the TunTap application as mentioned above. Lastly, as quoted above, I made sure Tunnelblick ran in the background when running the androidtether script.

    Now everything works. Perfect, thank you all! I've been waiting for something like this.
  12. lordawesome

    lordawesome New Member

    Dude, you get this to work? The easiest way I see is to open your terminal and type 'nano -w ~/azilink.sh' after that, you can copy/paste the text from the browser directly into your terminal. ctrl-x will exit and ask you to save. Once completed, 'sudo chmod 744 ~/azilink.sh' should get your permissions set right... then... ~/azilink.sh should work for you. Best of luck haus.
  13. drohl

    drohl New Member

    I've spent several hours trying to get everything in place and working, but to no avail. I have a hunch it's on the Tunnelblick side of things... all I have right now is its self-generated sample configuration file. What do I need to do to give it a real configuration file/where can I get it?

    My username is derrickrohl and in that folder I have adb and azilink.sh

    Here's what I get:

    Derrick-Rohls-MacBook-Pro:~ derrickrohl$ ~/azilink.sh
    /Users/derrickrohl/azilink.sh: line 17: adb: command not found
    Tue Jun 29 22:05:48 2010 OpenVPN 2.1.1 i386-apple-darwin10.2.0 [SSL] [LZO2] [PKCS11] built on Feb 24 2010
    Tue Jun 29 22:05:48 2010 NOTE: the current --script-security setting may allow this configuration to call user-defined scripts
    Tue Jun 29 22:05:48 2010 ******* WARNING *******: all encryption and authentication features disabled -- all data will be tunnelled as cleartext
    Tue Jun 29 22:05:48 2010 TUN/TAP device /dev/tun0 opened
    Tue Jun 29 22:05:48 2010 /sbin/ifconfig tun0 delete
    ifconfig: ioctl (SIOCDIFADDR): Can't assign requested address
    Tue Jun 29 22:05:48 2010 NOTE: Tried to delete pre-existing tun/tap instance -- No Problem if failure
    Tue Jun 29 22:05:48 2010 /sbin/ifconfig tun0 192.168.56.2 192.168.56.1 mtu 1500 netmask 255.255.255.255 up
    Tue Jun 29 22:05:48 2010 /Users/derrickrohl/azilink.sh up tun0 1500 1502 192.168.56.2 192.168.56.1 init
    Tue Jun 29 22:05:48 2010 WARNING: potential route subnet conflict between local LAN [10.0.1.0/255.255.255.0] and remote VPN [0.0.0.0/128.0.0.0]
    add net 0.0.0.0: gateway 192.168.56.1
    add net 128.0.0.0: gateway 192.168.56.1
    Tue Jun 29 22:05:48 2010 Attempting to establish TCP connection with 127.0.0.1:41927 [nonblock]
    Tue Jun 29 22:05:48 2010 TCP: connect to 127.0.0.1:41927 failed, will try again in 5 seconds: Connection refused
  14. anika200

    anika200 Well-Known Member

    This method works very well. Thank you droppedd.

    For those getting this error.
    This means the azlink.sh script can not find adb in your path. You need to go back and re-read the instructions on installing the Android sdk and the adb tools on your mac. Specifically pay attention to the instructions here Android SDK | Android Developers.

    Here are a couple quick tips. If you type "echo $PATH" into the osx terminal and do not see something like /Applications/android-sdk-mac_86/tools in the results. Then you probably do not have it set up right. Of course this assumes you have installed the sdk into the top level harddrive Applications folder Not an application folder in the user directory.

    Also If you are getting an error about tun not connecting then you can try a couple of things.
    1) make sure you click on tunnelblick in menu bar and hit connect at least once.
    2) from tunnelblick click on details and then edit configuration and put a semi-colon in front of the line "persist-tun".

    This seemed to get me going after a few false starts.
  15. jack_straw

    jack_straw New Member

    First time poster.

    Send a big thanks for the posters and people responsible for getting this info out there.

    I wanted to ask about the 2.2 Froyo update that has just been released. Does anyone know if this update breaks this tethering functionality as talked about in this thread? While I would like a faster phone, etc....tethering come first.

    If anyone knows or has tested this, it would be great to know. For now, I need to figure out how to fend off this auto update. =)

    -b
  16. damoon

    damoon New Member

    hey dude, i really don't know how to work the terminal on my macbook, could anyone help me out
    like this: "Either add the SDK's tools folder to your PATH or copy adb to /usr/local/bin/" what the heck is path!? hahaha

    .D
  17. drdunga

    drdunga New Member

    The #701122 - Pastie link is not responding. Can anyone repost elsewhere?

    Thanks

    (EDIT) Never mind - it was just very slow.
  18. egelt

    egelt New Member

    I just wanted to thank droppedD for posting this. Everything works on my MacBookPro once TunTap was added (thanks to rrgrs). Except...

    I can't get Cisco VPN to work when tethered with the Droid (it works fine when connected through Airport WiFi). I get the following error when trying to run the VPN Client:
    "Error 51: Unable to connect with the VPN subsystem. Please make sure that you have at least one network interface that is currently active and has an IP address and start this application again"

    One of the Mac forums suggested: sudo SystemStarter restart CiscoVPN, but this had no effect. It seems that the Cisco VPN software does not recognize my tethered droid as an "active" connection. I'm at my limits of knowledge here. Does anyone have any suggestions? Thanks, Tom
  19. egelt

    egelt New Member

    I switched over to PDAnet. It sets up a valid IP address that is visible in the Mac Network preferences and they provided a workaround in the help docs for the Cisco VPN (which is not supported on the Droid). For $15.95, I thought it was a good deal. Thanks again for this thread. It was fun to do some "BASHing" again. I even got to dust off some old vi commands :) --Tom
  20. dunn.hatani

    dunn.hatani New Member

    Also a first time poster,

    I attempted this method months ago and was unsuccessful. However I more than likely missed something then. I also have this question about 2.2 possibly breaking this method. Since I still am unsuccessful at getting traffic through I feel as though I may be doing something incorrectly.

    Output of my script:
    Thu Nov 4 20:09:31 2010 OpenVPN 2.1.1 i386-apple-darwin10.2.0 [SSL] [LZO2] [PKCS11] built on Feb 24 2010
    Thu Nov 4 20:09:31 2010 NOTE: the current --script-security setting may allow this configuration to call user-defined scripts
    Thu Nov 4 20:09:31 2010 ******* WARNING *******: all encryption and authentication features disabled -- all data will be tunnelled as cleartext
    Thu Nov 4 20:09:31 2010 TUN/TAP device /dev/tun0 opened
    Thu Nov 4 20:09:31 2010 /sbin/ifconfig tun0 delete
    ifconfig: ioctl (SIOCDIFADDR): Can't assign requested address
    Thu Nov 4 20:09:31 2010 NOTE: Tried to delete pre-existing tun/tap instance -- No Problem if failure
    Thu Nov 4 20:09:31 2010 /sbin/ifconfig tun0 192.168.56.2 192.168.56.1 mtu 1500 netmask 255.255.255.255 up
    Thu Nov 4 20:09:31 2010 /Users/nathanberry-chaney/Azilink.command up tun0 1500 1502 192.168.56.2 192.168.56.1 init
    Thu Nov 4 20:09:31 2010 WARNING: potential route subnet conflict between local LAN [10.0.0.0/255.255.255.0] and remote VPN [0.0.0.0/128.0.0.0]
    add net 0.0.0.0: gateway 192.168.56.1
    add net 128.0.0.0: gateway 192.168.56.1
    Thu Nov 4 20:09:31 2010 Attempting to establish TCP connection with 127.0.0.1:41927 [nonblock]
    Thu Nov 4 20:09:31 2010 TCP connection established with 127.0.0.1:41927
    Thu Nov 4 20:09:31 2010 TCPv4_CLIENT link local: [undef]
    Thu Nov 4 20:09:31 2010 TCPv4_CLIENT link remote: 127.0.0.1:41927
    Thu Nov 4 20:09:32 2010 Peer Connection Initiated with 127.0.0.1:41927
    Thu Nov 4 20:09:32 2010 Initialization Sequence Completed

    This appears to be successful, however any traffic I try and push through just hangs. i.e. google.com in browser just thinks for as long as I'll let it sit but won't load the page nor return an error.
  21. jp7399

    jp7399 New Member

    There's no need to use the terminal. Just install PDANet (June Fabrics PDA Technology Group) on your phone & your Mac. I successfully tethered my phone with the USB cable and with Bluetooth. I'm using Froyo with Motorola Droid, Mac OS X 10.6.4 (snow leopard).
  22. dmhepworth

    dmhepworth New Member

    Just to let you know in the new update of Gingerbread 2.3 with HTC sense 2.1 there is an option in the USB tether for tethering to a MAC. choose it and eventually Mac will recognise it and the settings will be populated.

    Job done!

    Phone is HTC Desire HD
  23. travisduchaine

    travisduchaine New Member

    ok so i dl'd the tunnel thing i have the app on the phone saved teh script txt on that doc on a mac but i cant get this to work i know nothing about computer can you please help me??? step by step lamens terms thank you!
  24. jaycbrf4

    jaycbrf4 Well-Known Member

    Whoa this all looks like a bit too much to chew...

    Download Easytether lite from the market, install drivers from the app to your mac, plug usb cable into mac, select ETHERNET ADAPTOR (en3)... And that is it... You are online. Enable internet sharing via airport and you now have wifi for additional devices ie: PS3, Xbox, other computers...

    I did this on my Powerbook G4 in 5 minutes and was playing Black Ops online in 5 more...
  25. killwa

    killwa Member

    i did all the steps and it says on my phone
    connected to host
    but on the terminal it keeps restarting process :/
    plz tell me what to do i feel so close to make it work xD

    Code:
    Sun Nov 27 14:08:15 2011 NOTE: the current --script-security setting may allow this configuration to call user-defined scripts
    Sun Nov 27 14:08:15 2011 ******* WARNING *******: all encryption and authentication features disabled -- all data will be tunnelled as cleartext
    Sun Nov 27 14:08:15 2011 TUN/TAP device /dev/tun1 opened
    Sun Nov 27 14:08:15 2011 /sbin/ifconfig tun1 delete
    ifconfig: ioctl (SIOCDIFADDR): Can't assign requested address
    Sun Nov 27 14:08:15 2011 NOTE: Tried to delete pre-existing tun/tap instance -- No Problem if failure
    Sun Nov 27 14:08:15 2011 /sbin/ifconfig tun1 192.168.56.2 192.168.56.1 mtu 1500 netmask 255.255.255.255 up
    Sun Nov 27 14:08:15 2011 /Users/ahmedabouelnour/azilink.sh up tun1 1500 1502 192.168.56.2 192.168.56.1 init
    add net 0.0.0.0: gateway 192.168.56.1
    Sun Nov 27 14:08:15 2011 WARNING: potential route subnet conflict between local LAN [192.168.1.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
    Sun Nov 27 14:08:15 2011 Attempting to establish TCP connection with 127.0.0.1:41927 [nonblock]
    Sun Nov 27 14:08:16 2011 TCP connection established with 127.0.0.1:41927
    Sun Nov 27 14:08:16 2011 TCPv4_CLIENT link local: [undef]
    Sun Nov 27 14:08:16 2011 TCPv4_CLIENT link remote: 127.0.0.1:41927
    Sun Nov 27 14:08:20 2011 Connection reset, restarting [0]
    delete net 128.0.0.0: gateway 192.168.56.1
    delete net 0.0.0.0: gateway 192.168.56.1
    Sun Nov 27 14:08:20 2011 /Users/ahmedabouelnour/azilink.sh down tun1 1500 1502 192.168.56.2 192.168.56.1 init
    Sun Nov 27 14:08:20 2011 SIGUSR1[soft,connection-reset] received, process restarting
    

Share This Page