How to enable internet sharing via USB Ubuntu 20.04 to android 6.0.1 and 10

8,293

Pretty old question but there is a simple way, thanks to an amazing tool

  1. obtain Gnirehtet
  2. install adb and allow USB debugging
  3. run ./gnirehtet run

See https://www.ubuntubuzz.com/2019/09/android-reverse-tethering-with-ubuntu-1804.html

Share:
8,293
UMR
Author by

UMR

Unix infant

Updated on September 18, 2022

Comments

  • UMR
    UMR over 1 year

    Internet connection on Ubuntu is by Ethernet cable.
    I want to connect two devices and share internet from Ubuntu to Samsung Galaxy Note Edge [SM-N915FY; android: 6.0.1] and Samsung Galaxy Note 9 [SM-N960F; android 10] by USB cable. I have read all previous topics about sharing internet, tired all but I have failed to share data.

    In Connections - System Settings Module -> tab IPv4 changed method to Shared to other computers, but still not working.

    Of course I've accepted permission to access by PC on phone.
    There is no reverse tethering option on both Samsung Notes. Also tired to enable USB debugging.

    • Hannu
      Hannu almost 4 years
      It is probably quite a bit easier to check your router for DHCP options, and setting it up to provide "Internet" to the phones via wlan.
    • UMR
      UMR over 3 years
      as i mentioned before, i want to share internet via USB, not wireless. I know how to share internet wireless, but not via USB.
    • Hannu
      Hannu over 3 years
      I have not heard of a single instance of sharing internet via USB. This probably requires a driver that supports such a connection, something that is unlikely to exist. Possibly available in the Android SDK as e.g. a debugging tool.
    • shamelessApathy
      shamelessApathy over 3 years
      @Hannu please try to be a bit more constructive. I just search for the same thing and this is the first post to come up. It's called USB OTG or GEther. It literally is ethernet over usb. If you can have a wifi dongle that plugs into the usb port, its only logical a usb cable can transfer information the same way. You can SSH into a raspberry pi zero using this technique as well.
    • Hannu
      Hannu over 3 years
      Right, now the big question is; is there a driver that works for Ubuntu or any other linux? Please be more specific.
    • user68186
      user68186 almost 3 years
  • Akshay K Nair
    Akshay K Nair over 2 years
    This was so easy.