How to enable internet sharing via USB Ubuntu 20.04 to android 6.0.1 and 10
Pretty old question but there is a simple way, thanks to an amazing tool
- obtain Gnirehtet
- install
adb
and allow USB debugging - run
./gnirehtet run
See https://www.ubuntubuzz.com/2019/09/android-reverse-tethering-with-ubuntu-1804.html
Comments
-
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 almost 4 yearsIt 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 over 3 yearsas i mentioned before, i want to share internet via USB, not wireless. I know how to share internet wireless, but not via USB.
-
Hannu over 3 yearsI 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 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 over 3 yearsRight, now the big question is; is there a driver that works for Ubuntu or any other linux? Please be more specific.
-
user68186 almost 3 yearsDoes this answer your question? How to share a wired Internet connection with an Android phone (reverse-tethering)?
-
-
Akshay K Nair over 2 yearsThis was so easy.