Some of Our Favorite Features in Android 5.0 Lollipop

Android 5.0 Lollipop is the latest major revision to Google’s mobile operating … more

Sony SmartEyeglass SDK Developer Preview Released

A little over a month ago in Tokyo, Japan, Sony unveiled its new SmartEyeglasstechnology. … more

XDA and Leaseweb: Server Trial/Moto 360 Contest (Winners!)

About a month ago, we held a contest along with XDA’s host, Leaseweb, to … more

Updated Android Lollipop Preview Images – XDA TV

The Android Lollipop Preview Images are now available! That and much more news is … more
View Poll Results: Was this guide Helpful
Worked 28 66.67%
Did not Work 14 33.33%
Voters: 42. You may not vote on this poll

Post Reply

[GUIDE] Reverse Tethering Wildfire --> Internet Pass Through

OP rahuliyer95

17th July 2011, 05:28 AM   |  #1  
rahuliyer95's Avatar
OP Member
Flag Thane
Thanks Meter: 86
 
59 posts
Join Date:Joined: May 2011
More
My First Guide. Hope it Helps..

HOW TO REVERSE TETHER YOUR PHONE / INTERNET PASS THROUGH


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. [I am using Win-7]
  • USB Cable for your phone


THE PROCESS


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.

Screen


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

CONTROL PANEL -> NETWORK AND SHARING CENTER


You get a scene in a similar manner.
Screen

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).
You will get the following screen.


Screen

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.
Screen

Now click on the new connection made by the android phone Local Area Connection 2 (in my case)
You will get the following screen

Screen

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

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.
Screen

PART 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.
Screen

Now type “ifconfig usb0 192.168.2.2 netmask 255.255.255.0”
Screen

“busybox route delete default”
Screen

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”

Screen

“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.

Screen

CONGRATS.... YOU ARE DONE!!

RESULTS

  • Works on Android Browser.(FOR ME)
  • Works on Opera & Opera Mini.
  • Works on XDA Premium App.
  • DOES NOT Work on Android Market.(Finding a Solution... if anyone gets it working please tell)
  • You may need to repeat this process each time you connect the phone to PC.
  • Works even without a SIM inserted.
Last edited by rahuliyer95; 17th July 2011 at 05:39 AM.
The Following 10 Users Say Thank You to rahuliyer95 For This Useful Post: [ View ]
17th July 2011, 09:52 PM   |  #2  
Senior Member
Flag Merseyside
Thanks Meter: 11
 
266 posts
Join Date:Joined: Nov 2008
More
Nice guide
To enable the market click settings under the sharing tab and add a new service called market with the port number 5228.
The Following User Says Thank You to meknb For This Useful Post: [ View ]
31st July 2011, 02:56 PM   |  #3  
omegfa's Avatar
Member
Thanks Meter: 5
 
70 posts
Join Date:Joined: Oct 2010
More
how use other app for internet
2nd September 2011, 04:36 AM   |  #4  
Junior Member
Thanks Meter: 0
 
6 posts
Join Date:Joined: Jul 2009
No resolution
currently m using a wildfire and cannot switch on USB tethering until mobile network is connected followed all the steps but no luck
26th September 2011, 07:38 AM   |  #5  
Junior Member
Thanks Meter: 1
 
9 posts
Join Date:Joined: Aug 2011
I am also a wildfire user. I did so many searching for reverse usb tethering, what I searched for were similar to the script of this thread. I follow all the steps but also not success.

I did do some searching, I just GUESS the main problem is the router at my home. My computer access the modem via router, maybe the router cannot give my WF a IP so my WF cannot access the internet? I dunno.

I didn't try access the internet with my computer connecting directly via modem without router since my home wire connection is so so so so complicated, but I believe that it will success. Would somebody try it and share your experience?
27th September 2011, 09:17 AM   |  #6  
Member
Flag Ruse
Thanks Meter: 5
 
45 posts
Join Date:Joined: Dec 2010
More
I think you can write a batch file for this. Using netsh and adb it would be easily done just from PC
27th September 2011, 03:51 PM   |  #7  
Junior Member
Thanks Meter: 4
 
16 posts
Join Date:Joined: Jul 2011
thanks for the guide worked for me.

Problem though is that after i turned off the tethering and disconnected my phone from the pc then reconnect it again just to check if it works the 2nd time, if found that usb tethering is having an error and does not turn on.

question is how to disable this or how i disconnect my phone from pc the right way? well after restarting, tethering is again ok and
30th September 2011, 03:16 PM   |  #8  
Member
Flag Ruse
Thanks Meter: 5
 
45 posts
Join Date:Joined: Dec 2010
More
I did it on linux!
The configuration on the PC is next:
Code:
echo 1 > /proc/sys/net/ipv4/ip_forward
ifconfig usb0 192.168.2.1 netmask 255.255.255.0
iptables -A POSTROUTING -t nat -s 192.168.2.1/24 -o wlan0 -j MASQUERADE
On the phone same az you did, but I had to edit

Code:
setprop net.dns1 8.8.8.8
to match my DNS server i.e.
Code:
setprop net.dns1 87.120.131.2
3rd November 2011, 11:09 PM   |  #9  
simmer14's Avatar
Senior Member
Thanks Meter: 84
 
414 posts
Join Date:Joined: Jul 2011
worked !!!!!!!!!!!!!
12th November 2011, 06:24 PM   |  #10  
Member
Flag Mumbai
Thanks Meter: 1
 
31 posts
Join Date:Joined: Nov 2011
Donate to Me
More
After about two months of searching I finally found this guide which makes it work. Thanks a lot! Surfing everything is fine but downloads just don't start (market or browser) I'm using G2x by the way so I guess this should work for most people.

Quote:
Originally Posted by meknb

Nice guide
To enable the market click settings under the sharing tab and add a new service called market with the port number 5228.

I did this which enabled me to browse the market. It won't download anything. I even forwarded the port on my broadband modem and the downloads don't start. Just keep saying "Starting downloading..."

Post Reply Subscribe to Thread

Tags
guide, internet passthrough, reverse tethering, wildfire
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Top Threads in Wildfire Android Development by ThreadRank