I've HTC One M8 and in the settings there is an option called:"share a computer's network connection with this phone" any one who use HTC One M8 can reach it by going to:
- Settings
- WIRELESS & NETWORKING
- More{Data usage,HTC Mini+,NFC...}
- Mobile networking sharing
- USB networking setting
- Internet pass-through{Share a computer's network connection with this phone}
After choosing this option, when connecting the device via USB to an internet wired PC, this should make the phone connect to the internet even if there is no WIFI or 4G. I am using Ubuntu 14.04 and android version of 5.0.2.
The thing is that in windows it's is very simple: if you have "HTC Sync Manager" installed on your windows computer the phone can automatically connect to the internet via the computer and it works wonderful but on ubuntu...
(it creates the option to have your phone connected without WIFI or 4G and it's very healthy!)
A solution to this issue can come out of 2 ways:
- finding a way to create use the software "HTC Sync Manager" on ubuntu
or
- find a totally different way to connect an android device to the network of a wired computer
I've already viewed the following questions:
How to share a wired Internet connection with an Android phone (reverse-tethering)?
Share internet from PC to unrooted android smart phone connected via USB cable
How to share my laptop internet connection with Android Sony Xperia Tipo?
How to share a wired Internet connection with an Android phone (reverse-tethering)?
The thing is that the good answers in these questions are usefull for laptops users and I use an old PC without WIFI.