Thursday, December 22, 2011

Reverse Tethering

WHAT IS REVERSE TETHERING???

Reverse Tethering / Internet Pass through is the method in which you can make your android phone use the internet connection of your computer without a WIFI and by using a usb cable. It is helpful for those people who don’t have a WIFI at their place and for those who don’t have a good internet plan for their mobile.

BASIC REQUIREMENTS :-

  • Rooted Phone With S-OFF.
  • SuperUser. [QR CODE]
  • BusyBox. [QR CODE]
  • Terminal Emulator. [QR CODE]
  • Windows O.S.
  • USB Cable for your phone.

THE PROCESS :-

1. PC :-

Connect Your Android Phone to your PC. Make sure you are rooted and have terminal emulator installed.
Turn on USB Tethering from

SETTINGS -> WIRELESS AND NETWOKRS  -> TETHERING AND PORTABLE HOTSPOT -> USB TETHERING.











Next you will get a new connection in your PC. Open Networking and Sharing Center from

 CONTROL PANEL -> NETWORK AND SHARING CENTER







 Now There will be one connection which will be your Main Net Connection and the Other one will be your Android Phone’s Created Connection for tethering. Click on your main net connection i.e. the one you use for Connecting to net Local Area Connection(in my case).








Now click on Properties.After this click on sharing and tick on Allow other network users to connect through this computer’s internet connection and click ok for any dialog box shown and click ok to come back to the main networking screen.








Now click on the new connection made by the android phone Local Area Connection 2 (in my case)










Click on properties. Then go to Internet Protocol version 4(TCP/IPv4) and click on properties










Now You need to enter 192.168.2.1 in IP address and enter 255.255.255.0 in Subnet mask and keep remaining things empty.










2.ON THE PHONE :-

*NOTE:- ALL CODES HAVE TO BE WRITTEN WITHOUT QUOTES*

Open Android Terminal on the Phone and type "su". Provide it superuser permissions.










Now type “ifconfig usb0 192.168.2.2 netmask 255.255.255.0” to set your mobile's default ip for usb connection and the subnet mask










Now “busybox route delete default” to remove your mobile's default connection of your mobile network.
*You may get an error here but it does not matter*








Now type “iptables –F –t nat”(* -F in caps is must)
Then type “busybox route add default gw 192.168.2.1









Now “setprop net.dns1 8.8.8.8
Next (setprop “net.gprs.http-proxy” “” ) [*Note :- here the code is written in bracket to avoid confusion.. The quotes(“”) are required.]







CONGRATS.... YOU ARE DONE!!



  • Works on Android Browser.(FOR ME)
  • Works on Opera & Opera Mini.
  • Works on XDA Premium App.
  • For Android Market you need to forward port 5223 on the IP 192.168.2.1.
  • You may need to repeat this process each time you connect the phone to PC.
  • Works even without a SIM inserted.