The Surgery | The doctor is IN

TAG | android sdk

Jul/09

12

Tethering the HTC Dream

What’s Tethering?

If you have a laptop or netbook, chances are you might want to access the internet.

If you’ve got a blue network cable handy, then that might be useful.  If not, and you’ve got WiFi built-in to your laptop, or a WiFi adapter, AND you’re in a wireless hotspot, then you might be able to connect to the internet via wireless.

If you’ve purchased a data plan from one of Australia’s several mobile telecommunications service providers, and you’ve also purchased a data modem which plugs into a USB port, or a PCMCIA broadband card, then that’s a good option too.

But if you’ve got a data plan and your mobile telephone already operates on one of Australia’s 3G mobile networks, then surely you can use your telephone as a modem and connect to the internet through your mobile telephone?

Yep, you can.  That’s tethering.

Is it easy?  Technically, yes.  Practically, no.

Why not?

Because Australian telecommunications carriers want you to spend more money and buy their network adapters.  Like these.  IT Wire journalist and Tech Talk Radio’s Adam Turner explains it well in this article written for The Age Digital Life.

The Australian Android Market has no tethering applications and isn’t likely to in the near future, for reasons explained by Adam.  But is it mandatory to have applications listed in the Android Market, in order to install 3rd-party software on an Android-powered device?

No, not at all.

Introducing… Android Tethering!

Here’s what you need;

  • An Android-powered phone, like the HTC Dream (aka T-Mobile G1, or “Google phone”); or an HTC Magic for example;
  • A laptop / netbook / desktop computer;
  • A USB cable to connect your phone to your laptop / netbook / desktop; and
  • A data plan attached to your mobile telephone service.

Follow the steps at cp.blog, which are, in brief:

  • Install the Tetherbot tethering application on your Google phone.  You need to tell your phone to allow installation of non-Android Market applications;
  • Ensure the latest Android driver is installed on your laptop;
  • Install the Android SDK or “adb” utility on your laptop;
  • Open a command prompt and type “adb forward tcp:1080 tcp:1080″ to start the proxy server on your laptop (use  Task Manager to kill the process when you’re done – maybe setup a desktop shortcut to streamline this process);
  • Use a web browser like Mozilla Firefox, and install a proxy manager like FoxyProxy.  Follow the configuration instructions in Mike’s post;
  • Connect your Google phone, start Tetherbot and press “Start Socks”;
  • Click on the web browser FoxyProxy button to force all traffic through the proxy server (“adb”) you have installed and started.  It would have looked something like this:
…and now should look something like this:

Bingo! All your web traffic is now routed through your Google phone.  You now have web access to the internet via your mobile telephone network.

I tested my new tethering by first checking my local IP address, through the WiFi connection:

…and then through the new tethered connection, via my mobile phone network:

Yep … definitely using a different network route now!

Warning! Watch your data usage.

Another Warning! Pay close attention to your data usage.

I would be interested to hear from people who have had similar success with this process, or modified the process slightly in order to use other handsets, proxy servers, browsers or browser plug-ins.

Many thanks to Mike Thompson and the Android Developer Community for assistance with this blog post.

· · · · · ·

Theme Design by devolux.nh2.me