Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
housas08
Old
(Last edited by housas08; 3rd May 2011 at 01:17 AM.)
#1  
Member - OP
Thanks Meter 7
Posts: 44
Join Date: Oct 2010
Location: Athens
Arrow [Guide] Reverse USB Tethering step by step

hello everyone!
I was trying to find a way to connect my iconia via usb with my laptop and use my internet access for instances that wifi isn't available.

I searched a lot but there wasn't any usefull clear guide. So after some failing attempts, finally i managed to succeed (using win 7). Here are the steps:

*root is required*

1. install http://code.google.com/p/android-wired-tether/ (i used stable version 1.2 but i don't think 1.4 will make any problems) but do not enable it yet.

2. Install USB drivers from Android SDK instructions found here: http://developer.android.com/sdk/win-usb.html , later you will also need RNDIS drivers because when you connect the tablet with your pc and enable wired tether it will install the drivers. I found working drivers from HTC sync located at C:\Program Files (x86)\HTC\HTC Driver\Driver Files\Win7_x64\htcrndis.inf

you have to install them manually from the device manager (pick the: HTC Remote NDIS based device)

3. now that we have completed the installation with Wired Tether (still leave it running), we are ready to proceed to the next step. Open network connections. You will notice that now there is one more. (in my case no1 is local area and no2 local area 5 (the one wired tether created). select the connection you want to share go to properties and enter "sharing tab". tick "Allow other network users to connect through this computer's Internet connection" and pick the connection made by wired tether. Hit apply and you will have bridged the two connections.

4. open any emulator on your tablet and type:

Code:
su
ifconfig usb0 192.168.1.9 netmask 255.255.255.0 up
route add default gw 192.168.1.1 dev usb0
setprop net.dns1 8.8.8.8
setprop "net.gprs.http-proxy" ""
netcfg usb0 dhcp
at ifconfig command you enter an available ip of your router for example if your pc is connected to 192.168.1.7 you can pick 192.168.1.9 that is free.
at the second line enter the default gateway of your internet connection found under the detailed view of its options.
setprop "net.gprs.http-proxy" "" is in case you are NOT behind a proxy server

5. wait about 15 seconds and...
enjoy!

each time you enable wired tether you have to type in:
su
netcfg usb0 dhcp

to undo the hole "reverse usb" thing, simply unbridge the 2 connections, restart wired tether and you are ready to use it for normal tethering.

browsers work fine, facebook, pulse, tunein. i haven't tested many apps yet...
issues: Market browsing is ok but downloading apps not, some apps do not work.




p.s: it's my first guide so if something seems confusing or unclear, please forgive me!
HTC Desire (amoled) - rooted

Acer Iconia A500 32GB wifi version - rooted

Motorola Droid Razr (GSM) NonEFIGSRetail.en.EU - rooted
The Following 4 Users Say Thank You to housas08 For This Useful Post: [ Click to Expand ]
 
thor2002ro
Old
#2  
thor2002ro's Avatar
Senior Member
Thanks Meter 511
Posts: 716
Join Date: Oct 2007
Location: 127.0.0.1

 
DONATE TO ME
interesting... question... why do you do " setprop "net.gprs.http-proxy" """?
i'm asking because maybe this is what i'm missing in my usb 3g for my wifi only
copy/paste or git merging is not development...

++++++++++++
Samsung Galaxy Note
FW: Tegraowners JB ROM v3
Kernel: thor-kernel-0.20-2
Recovery: thor touch recovery galaxy note 1.9

Acer ICONIA A500 TAB WIFI Only
FW: Tegraowners JB ROM v12@k3.6-thor-kernel_v5.2
Recovery: 1.7.3
++++++++++++
Twitter

If I did something you liked HIT THANKS (: and Donate for BEER FUND
 
housas08
Old
#3  
Member - OP
Thanks Meter 7
Posts: 44
Join Date: Oct 2010
Location: Athens
Quote:
Originally Posted by thor2002ro View Post
interesting... question... why do you do " setprop "net.gprs.http-proxy" """?
i'm asking because maybe this is what i'm missing in my usb 3g for my wifi only
forgot to implement the source link...

comments to focus are:

Quote:
Rugga said...

I'm using Windows 7. I shared my ethernet internet connection to the USB tether device.

In console emulator on the phone I typed:
ifconfig usb1 192.168.2.2 netmask 255.255.255.0 up
route add default gw 192.168.2.1 dev usb1

I can ping the gateway, I can also ping the web by IP address, eg 64.233.181.104 for google.com

What I can't do is use the browser or ping by domain name. I tried:
setprop net.usb1.dns1 192.168.2.1; and
setprop net.dns1 192.168.2.1
Quote:
OK it is working now. After setting up ICS type in console emulator on your phone:
ifconfig usb0 192.168.2.2 netmask 255.255.255.0 up
route add default gw 192.168.2.1 dev usb0
iptables -F
iptables -F -t nat
setprop net.dns1 8.8.8.8
setprop "net.gprs.http-proxy" ""
it gave me a headache trying to understand what exactly does this line...

the only thing i managed to figure out is tha it redirects and leaves blank proxy server via gprs connection... is it a fake connection (gprs) that blocks data transfer via usb from apps? the only sure thing is that these 2 lines with setprop command fixed the issue with the apps (browser and others)...
first is google's dns, probably necessary as well...

btw great job with the modules!
HTC Desire (amoled) - rooted

Acer Iconia A500 32GB wifi version - rooted

Motorola Droid Razr (GSM) NonEFIGSRetail.en.EU - rooted
 
HQRaja
Old
#4  
HQRaja's Avatar
Retired News Writer
Thanks Meter 410
Posts: 490
Join Date: Jan 2008
Location: Islamabad
Default A quick question

Is this Iconia-specific or can the same method be used on any Android device provided we have working RNDIS drivers for it?

The way it appears to me, I don't see why it shouldn't work on other devices but please correct me if I am wrong.
Regards,
Haroon Q. Raja.

Entrepreneur | Writer | Math Teacher | Web Developer | Technology Enthusiast
News Writer at XDA Portal | Senior Editor at AddictiveTips | Founding Editor at HQTech
Visit my Website | Subscribe on Facebook | Follow on Twitter | Add me on Google+
Want something covered on the XDA portal? PM me and I'll cover it if it meets the requirements.
 
housas08
Old
#5  
Member - OP
Thanks Meter 7
Posts: 44
Join Date: Oct 2010
Location: Athens
Quote:
Originally Posted by HQRaja View Post
Is this Iconia-specific or can the same method be used on any Android device provided we have working RNDIS drivers for it?

The way it appears to me, I don't see why it shouldn't work on other devices but please correct me if I am wrong.
in devices which already have the tethering ability, the hole wired tether thing doesn't need installation, so it is easier and i think it will work on any android based devices. so give it a try!

probably you won't even need to install RNDIS drivers, but in any case the HTC ones work like a charm (some other that i tried crashed windows upon connection).
you don't have to get specific RNDIS drivers especially for your device cause they are used for connecting usb devices used as network ones.

so... give it a try!
HTC Desire (amoled) - rooted

Acer Iconia A500 32GB wifi version - rooted

Motorola Droid Razr (GSM) NonEFIGSRetail.en.EU - rooted
 
usman3206
Old
#6  
Member
Thanks Meter 2
Posts: 59
Join Date: Aug 2007
Exactly what i need desperately, i have a wifi signal which is very poor, i use external antenna to boost wifi signal. This external antenna has no drivers for android for sure, therefore i need to do reverse tethering to share internet connection from my computer.
I tried to use your guide but i think it needs a bit more details. I installed android tethering 1.4 but i am stuck at step 2 cause at this step when i turn on debugging mode on iconia then PC searches for drivers but doesn't accept the ones i downloaded from android SDK.
Kindly help me with this, i will be grateful for that.
Thanks.
 
housas08
Old
#7  
Member - OP
Thanks Meter 7
Posts: 44
Join Date: Oct 2010
Location: Athens
Quote:
Originally Posted by usman3206 View Post
Exactly what i need desperately, i have a wifi signal which is very poor, i use external antenna to boost wifi signal. This external antenna has no drivers for android for sure, therefore i need to do reverse tethering to share internet connection from my computer.
I tried to use your guide but i think it needs a bit more details. I installed android tethering 1.4 but i am stuck at step 2 cause at this step when i turn on debugging mode on iconia then PC searches for drivers but doesn't accept the ones i downloaded from android SDK.
Kindly help me with this, i will be grateful for that.
Thanks.
Hi! Sorry for my late answer to that. I've been away for a while...
try the drivers that are located at http://acer.us/ac/en/US/content/drivers
pick tablet, iconia tab, a500 and then download the usb drivers.
HTC Desire (amoled) - rooted

Acer Iconia A500 32GB wifi version - rooted

Motorola Droid Razr (GSM) NonEFIGSRetail.en.EU - rooted
 
Bec07
Old
#8  
Bec07's Avatar
Senior Member
Thanks Meter 90
Posts: 721
Join Date: Aug 2010
Any chance to enable this with an android phone? Wired tethering from the phone I mean.

Sony J70 -> Nokia 3300 -> W800i -> 6230i -> Motorola A925 -> N82 -> 3GS -> SGS -> SGS2 -> ...
-----------------------------------------------------------------------------------------------
N900 -> A500 -> P7310 -> TF201 -> TF810C -> ...
 
XCellPhoneSalesRep
Old
#9  
XCellPhoneSalesRep's Avatar
Senior Member
Thanks Meter 289
Posts: 1,001
Join Date: Oct 2010
Location: The Joisey Shore, Nu Joisey

 
DONATE TO ME
There's actually a free program @ http://www.connectify.me

Its for Windows and they are developing an android app as well. But the windows software is quite easy and makes your computer or laptop a "hotspot" to connect multiple devices too.

enjoy!

me!!!

















 
housas08
Old
#10  
Member - OP
Thanks Meter 7
Posts: 44
Join Date: Oct 2010
Location: Athens
Quote:
Originally Posted by Bec07 View Post
Any chance to enable this with an android phone? Wired tethering from the phone I mean.
i'll give it a try (i assume you mean via usb connection).

connectify is for wireless networking. the hole reverse usb tethering thing is based on usb connection without any participation of a wireless network at all.
the majority of the latest android phones can become a hotspot natively anyway.
HTC Desire (amoled) - rooted

Acer Iconia A500 32GB wifi version - rooted

Motorola Droid Razr (GSM) NonEFIGSRetail.en.EU - rooted

 
Post Reply+
Tags
usb reverse tethering
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...

XDA PORTAL POSTS

Side-Swiping Multitasking with Kakudo

Recovering iPad users may still remember the multitasking function where you can swipe left or right to … more

Learn to Edit Graphics for your Development Work

The importance of good and appropriate graphics for your development work is undeniable. Be … more

Tasker Alternative: AutomateIt, Automates Your Device Tasks – XDA Developer TV

XDA Developer TV Producer Kevin wants to help make your … more