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

General usb reverse tethering

Discussion in 'Android Devices' started by kalikool123, Sep 19, 2011.

  1. kalikool123

    kalikool123 Member
    Thread Starter
    Rank:
    None
    Points:
    16
    Posts:
    51
    Joined:
    Jul 21, 2011

    Jul 21, 2011
    51
    5
    16
    Kerala
    Is there any way to enable usb reverse tethering in the CM 7 for galaxy mini
     

    Advertisement

  2. roofrider

    roofrider Well-Known Member
    Rank:
    None
    Points:
    18
    Posts:
    80
    Joined:
    Jul 16, 2011

    Jul 16, 2011
    80
    19
    18
    Bangalore, India.
  3. dhruvbatra205

    dhruvbatra205 Well-Known Member
    Rank:
    None
    Points:
    36
    Posts:
    146
    Joined:
    Aug 29, 2011

    Aug 29, 2011
    146
    4
    36
    Why would you want to do that?
     
  4. kalikool123

    kalikool123 Member
    Thread Starter
    Rank:
    None
    Points:
    16
    Posts:
    51
    Joined:
    Jul 21, 2011

    Jul 21, 2011
    51
    5
    16
    Kerala
  5. roofrider

    roofrider Well-Known Member
    Rank:
    None
    Points:
    18
    Posts:
    80
    Joined:
    Jul 16, 2011

    Jul 16, 2011
    80
    19
    18
    Bangalore, India.
    just place that file on sd card n type this in terminal:
    su
    cd /sdcard/
    sh tethering.sh

    follow the steps frm that site
     
  6. balazs31

    balazs31 Newbie
    Rank:
    None
    Points:
    15
    Posts:
    22
    Joined:
    Sep 21, 2011

    Sep 21, 2011
    22
    0
    15
    Could somebody translate this, cuz for me google translate works 50% and 50% of the words are in english and 50% in indonesian. I would really appreciate.

    thx
     
  7. yagya

    yagya Android Enthusiast
    Rank:
    None
    Points:
    53
    Posts:
    481
    Joined:
    Aug 28, 2011

    Google Translate
     
  8. balazs31

    balazs31 Newbie
    Rank:
    None
    Points:
    15
    Posts:
    22
    Joined:
    Sep 21, 2011

    Sep 21, 2011
    22
    0
    15
    now my problem is that i can' understand step 5 and 6:
    5. Open a terminal emulator on HP
    6. run file its tethering.sh
    Code:
    su
    Code:
    cd / sdcard /
    Code:
    sh tethering.sh

    at step 6, what do i need to do, i cant run it.
     
  9. yagya

    yagya Android Enthusiast
    Rank:
    None
    Points:
    53
    Posts:
    481
    Joined:
    Aug 28, 2011

    copy tethering.sh to /sdcard/ and in terminal type the code
    su
    cd /sdcard/
    sh tethering.sh

    and tada it will run the script ...
    :)
     
  10. balazs31

    balazs31 Newbie
    Rank:
    None
    Points:
    15
    Posts:
    22
    Joined:
    Sep 21, 2011

    Sep 21, 2011
    22
    0
    15
    where and what is the terminal, im new on android
     
  11. kalikool123

    kalikool123 Member
    Thread Starter
    Rank:
    None
    Points:
    16
    Posts:
    51
    Joined:
    Jul 21, 2011

    Jul 21, 2011
    51
    5
    16
    Kerala
    I couldnt execute the sh file on terminal emulator, but i was able to execute that using rootexplorer.
    But still no hope, as usb tethering cannot be enabled in cm7.
    after enabling it , the usb tethering automaticaly gets disabled
     
  12. kalikool123

    kalikool123 Member
    Thread Starter
    Rank:
    None
    Points:
    16
    Posts:
    51
    Joined:
    Jul 21, 2011

    Jul 21, 2011
    51
    5
    16
    Kerala
    terminal is the terminal emulator as seen in ubuntu
    You need to have your device rooted for running terminal emulator
     
  13. yagya

    yagya Android Enthusiast
    Rank:
    None
    Points:
    53
    Posts:
    481
    Joined:
    Aug 28, 2011

    USB thethering work fine in cm7 but i think reverse tethering is very difficult to try out especially on windows .. if you have linux and want to tey reverse tethering you can go through this article Mycila Blog: Reverse USB Tethering with Android 2.2 it might be of any use ....
     
  14. roofrider

    roofrider Well-Known Member
    Rank:
    None
    Points:
    18
    Posts:
    80
    Joined:
    Jul 16, 2011

    Jul 16, 2011
    80
    19
    18
    Bangalore, India.
    this is the best method for reverse tethering that works, it'll take sometime to get it right first time
     
  15. mvmsk

    mvmsk Well-Known Member
    Rank:
    None
    Points:
    36
    Posts:
    105
    Joined:
    May 20, 2011

    May 20, 2011
    105
    7
    36
    India
  16. yagya

    yagya Android Enthusiast
    Rank:
    None
    Points:
    53
    Posts:
    481
    Joined:
    Aug 28, 2011

    because he doesn't have wireless driver and he has to do it via USB...
     
  17. 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


    A thank is always aprreciated !

    Samy--l337
     

Share This Page

Loading...