Ads 468x60px

=

Wednesday, July 4, 2012

Tethering and Reverse Tethering For Windows and Android - The Complete Guide


Android Reverse Tethering for Windows users.

Tethering is the ability of sharing the internet connection of your Android device on your PC. Reverse Tethering is the opposite, using your PC's internet connection on your Android Device. These methods have their own purposes in several important cases, go ahead and read this article, it will sure help you out!


Using your Android's Internet Connection On Your PC

Tethering Process : 

Note : This works well only on rooted devices.

For non-rooted devices, you can follow the steps on the following link, but you cannot enjoy the complete experience, as of rooted devices. :  http://www.codeproject.com/KB/android/UsbPortForwarding.aspx

Installation :
Unpack the zip file. This zip files contains the Windows software, ADB and the android APK.
 (Look for the download link at the bottom of this post. )

Before starting the tool :
  1. Ensure you have "debugging" enabled on your phone :
  2. Settings > Applications > Development > USB Debugging > Turn On
  3. Ensure you have root access AND SuperUser application installed.
  4. Change the superuser settings (Menu -> Preferences -> Notifications part) :
  5. Uncheck "Notifications" label to display "Do not show notification when an app is granted Su Permissions"

The AndroidTool.exe is the Windows Software

The low level communication tool (ADB) is included in the zip file.
AndroidTool will try to find ADB in c:\android-sdk-windows\platform-tools\adb.exe
If not found the application will use the provided one.

First Time Use:
  1. If you want to use another version of ADB, clik "config" and in the first tab enter the path to the ADB
  2. Select the DNS server to use in the list, on the right side. On complex systems, DNS Fails to be detected.
Steps
  1. Start reverse tethering
  2. Just click “Connect”.
  3. If it's the first time you use the program, This will install the latest android package and the dependencies (busybox and redsocks).
  4. The SuperUser process may ask you to allow “Usb tunnel”

If the android process crash after receiving superuser rights, close the windows program and start again.

The android interface (first tab) will show you a notification that "connection forwarded to windows".
Others tabs are just for debugging (give information about system route tables and connections). Not yet finished.

Start your browser
Google chrome will complain that no connection is available. Don’t care, but it works.
Firefox , opera and dolphin don’t have problem with that !!!

The current version of the application can’t forward low level ICMP packet (PING).
From Android Os point of view , there is no internet connection.

The Market :

The application requires an active 3G or Wifi network interface.
Some market applications are tagged "Wifi" only.
I can't fix this problem without changing low level API (ConnectivityManager/ConnectivityService).


To get around this problem, you can activate the 3G BEFORE starting reverse tethering, all the data will go to the usb.

Tips : You can connect to some wifi hotspot not protected by a key.

It's only when you want to surf that the hotspot ask you a user/password.
But, at this point, we have an 'active' connection. Market download should work after starting reverse tethering.

Other apps :

The system automatically detect ports like http (80), https (443) , Market (5228),UDP ports like DNS,
You don't need to add static ports in the windows program (config / ports).
So unless the application is not well written, it must work.



Troubleshooting

If your device is not listed in the "select a device" combobox :

  • Ensure Usb debugging is enabled (Settings > Applications > Development > USB Debugging > Turn On). Deactivating and reactivating the Debug mode may help
  • The ADB subsystem is sometimes not working properly. Click the "Kill ADB" button (on Tools)
  • Your device is perhaps not installed properly. See your device manufacturer. On the download section of this article, the usb_driver.zip contains a generic driver. Lastest version can be download here : http://developer.android.com/sdk/win-usb.html
Click refresh or restart the tool to detect your device.
If the connection shuts down often, try another usb cable


Tested under :
Tested on more than 20 android models.
 
Or
Mirror Link

--------------------------------------------------------------------

How to use your Computer's Active Internet Connection on your Android Mobile (USB Cable)

Reverse Tethering Process: 

This method requires a rooted Android and a Windows PC, but it’s very easy to use. If your computer has Wi-Fi, it may be easier to create a Wi-Fi hotspot using a utility like Connectify instead.

Prerequisites

Before using this utility, you’ll have to enable USB debugging on your Android phone or tablet – open the Settings screen, tap Applications, tap Development, and tap the USB Debugging checkbox.

You will probably also want to disable SuperUser access notifications, or you’ll constantly see the SuperUser notification. Launch the SuperUser app on your device, open its menu, tap Preferences, and uncheck the Notifications check box under Notifications. If you don’t see the SuperUser app on your Android, your device probably isn’t rooted.

You’ll also need your device’s USB driver installed on your computer. You can get this from your device’s manufacturer or try downloading a generic driver from Google.

Android Reverse Tethering Tool

Android Reverse Tethering is a Windows utility that uses ADB – also known as Android Debug Bridge – to share your computer’s Internet connection with your Android over USB. It includes its own copy of ADB, so you don’t even need the Android SDK installed on your computer. You can download it from here – scroll down and click the latest ReverseTethering .zip file in the Attached Files section.

Extract the downloaded .zip file and run the AndroidTool.exe application inside its folder.

Connecting

Plug your Android smartphone or tablet into your computer with its USB cable, select it from the Select a device drop-down box, and click the Connect button in the Android Reverse Tethering Tool application. It will connect to your Android and install the required software (Busybox and Redsocks) on it.

Tap the Allow button in the SuperUser prompt to allow the USB Tunnel tool on your device.

If you encounter a crash, close the Android Reverse Tethering Tool application and start again. You can also try clicking the Kill ADB button on the Tools tab to relaunch the ADB process. You’ll see a connection notification when the tool establishes a connection.

Usage

After the setup process is complete, you can open apps on your device and use the Internet. Your Android will forward network traffic over the USB cable to your computer, where it will take advantage of your computer’s Internet connection. The Windows application shows information about the forwarded connections.

Some applications may complain that you don’t have an Internet connection, although most (with the notable exception of Google Play app downloads) will work properly. You can work around this problem by connecting to a 3G or Wi-Fi connection before activating reverse tethering – Android will think you have a normal connection, although all data will be send through your USB cable and not over the air.


0 comments:

Post a Comment

Subscribe to the Posts via E-Mail
Follow me on FaceBook