1. Download our Official Android App: Forums for Android!

Support Reverse Tethering using USB Cable

Discussion in 'Android Devices' started by Aravindan, Jan 14, 2011.

  1. Aravindan

    Aravindan Member
    Thread Starter
    Rank:
    None
    Points:
    16
    Posts:
    61
    Joined:
    Aug 2, 2010

    Aug 2, 2010
    61
    7
    16
    Male
    Software Quality Analyst
    Chennai
    I want to use the Internet connection (LAN) available in my PC to download files/game data from internet in my Galaxy S. Basically I want to use the internet available in my PC on my android phone. I did a fair bit of research and was unable to find a solution that doesnt involve Wi-Fi or rooting the phone. I havent rooted my Galaxy S and have no intention of doing so.

    Please let me know if reverse-tethering for internet is possible with USB cable.

    Thanks in advance...
     

    Advertisement

  2. snapper.fishes

    snapper.fishes Android Expert
    Rank:
    None
    Points:
    163
    Posts:
    2,279
    Joined:
    Jul 13, 2010

    Jul 13, 2010
    2,279
    263
    163
    Impossible.

    Reverse tethering can only be done with Windows Mobile. I suspect it's a hardware limitations. I was once interested in this as well.
     
  3. Global_S

    Global_S Newbie
    Rank:
    None
    Points:
    36
    Posts:
    20
    Joined:
    Mar 30, 2010

    Mar 30, 2010
    20
    1
    36
    UK
    Sense has an option called Internet pass-through that allows you to do just that.
     
    snapper.fishes likes this.
  4. snapper.fishes

    snapper.fishes Android Expert
    Rank:
    None
    Points:
    163
    Posts:
    2,279
    Joined:
    Jul 13, 2010

    Jul 13, 2010
    2,279
    263
    163
  5. Global_S

    Global_S Newbie
    Rank:
    None
    Points:
    36
    Posts:
    20
    Joined:
    Mar 30, 2010

    Mar 30, 2010
    20
    1
    36
    UK
    TBF it's my first android phone after dumping my Touch HD and winmo, so don't know what the greater ecosystem is like (yet). However if HTC can do it, then can't people write apps to do it for other phones?

    Not sure I see the advantage unless you don't have wifi.
     
  6. seepage

    seepage Android Enthusiast
    Rank:
    None
    Points:
    43
    Posts:
    442
    Joined:
    Aug 16, 2010

    Aug 16, 2010
    442
    30
    43
    Look HERE Might be what you are looking for
     
  7. Samyl337

    Samyl337 Lurker
    Rank:
    None
    Points:
    5
    Posts:
    2
    Joined:
    Feb 18, 2012

    Feb 18, 2012
    2
    0
    5
    Connect the phone to the computer with the usb cable.
    (Go to phone) Disable usb storage by opening the top sliding menu, touch the message "USB connected" and choose "Turn off usb storage"
    Goto settings->Wireless and network->Tethering and portable hotspot->Enable USB tethering.
    (Go to PC) A new network interface will be shown in your computer. Set it to "Home" if Windows firewall asks about it. In "Network and sharing center", choose "Change adapter settings". You can see the new interface here. Let's call it "Android connection".
    Enable internet connection sharing on the interface that has internet connection. (It took me awhile to realize I was doing it the other way round). For those with LAN, it's your LAN card, for those with wireless, it's your wireless card(why are you doing usb tethering anyway?): Right click the interface-> properties->choose sharing tab and check "Allow the other network users to ...". Close the window to accept it.
    Windows will set the IP of "Android connection" to 192.168.x.x for some unknown reason. Doesn't really matter although it may clash with some routers default setting. We will set it to another fixed IP and let our computer be the gateway.
    Right click "Android connection" -> Properties, Choose "Internet protocol version 4 (TCP/IPv4)", Click properties. Choose "Use the following IP address". The setting is flexible and can differ from my values(if you know what you're doing)
    IP address: 10.1.1.11
    Network mask: 255.255.255.0
    Default gateway: leave blank
    Leave the dns part blank
    Press ok and close the properties window.

    download an app called terminal emulator for u r andriod (easily available in market ann in non market as well ! )
    (Go to phone) Open your terminal emulator and type the following commands

    Note: Ur IPs can differ but remember second cmds ip and ur andriod lan ip on ur pc (windows or linux ) should be same !

    su
    ifconfig usb0 10.1.1.12 netmask 255.255.255.0 up
    route add default gw 10.1.1.11 dev usb0
    setprop net.dns1 8.8.8.8

    ENjoyyy !!!!!!!!!

    A thank is always appreciated !
     
  8. nomanman

    nomanman Lurker
    Rank:
    None
    Points:
    5
    Posts:
    6
    Joined:
    Feb 8, 2012

    Feb 8, 2012
    6
    0
    5
    It will need ROOT....
     
  9. deviljagdish

    deviljagdish Lurker
    Rank:
    None
    Points:
    5
    Posts:
    8
    Joined:
    Mar 1, 2012

    Mar 1, 2012
    8
    0
    5
  10. jsk_999

    jsk_999 Lurker
    Rank:
    None
    Points:
    5
    Posts:
    1
    Joined:
    Dec 5, 2013

    Dec 5, 2013
    1
    0
    5
    I get error "no such device when I try to set ip address for usb0.

    Any advise !!

    Thanks in advance..
     
  11. soso0225

    soso0225 Lurker
    Rank:
    None
    Points:
    15
    Posts:
    2
    Joined:
    Jan 7, 2015

    Jan 7, 2015
    2
    0
    15
    Male
    Some info that may help you, here http://forum.xda-developers.com/showthread.php?t=2287494,
    quote :
    " The name for usb interface inside Android may vary. It is usually " rndis0 " or " usb0 ".
    Type Code in terminal on your phone : " busybox ifconfig " to identify the name. " Mine is "rndis0".
    I hope it will help.
     
  12. soso0225

    soso0225 Lurker
    Rank:
    None
    Points:
    15
    Posts:
    2
    Joined:
    Jan 7, 2015

    Jan 7, 2015
    2
    0
    15
    Male
    Thank You for these great instructions !!!
    I combined those written by you, to that described here: http://forum.xda-developers.com/showthread.php?t=2287494 ( Thank You phamthanhnam ), because so I can simulate a wifi connection :)
     

Share This Page

Loading...