Tethering - Sharing mobile network to LAN

195 Views Asked by At

I am working on an Android 10 device, which have 4G access, Wifi and Ethernet port. I do not have root. I am researching a ethernet tethering solution.

This Android device will have LAN/ethernet connection to another component (lets say a PC). The LAN network will not have access to the internet. Idea is to share 4G connection of Android device to the LAN and that PC.

In the settings screen of the Android, I can only see bluetooth tethering and USB tethering, but not wifi or ethernet ones.

I am considering:

  1. Ethernet tethering directly, if possible.
  2. Some kind of NAT in the Android.
  3. A SOCKS PROXY server in the Android.

I can see some github repositories like https://github.com/edveen/AndroidSocks5Proxy, but they are old and on the second one, my antivirus is even reporting some issues in the lib files.

Or maybe a https://github.com/NanoHttpd/nanohttpd would be usable, although not only http trafic will need to be shared.

Is it even feasible? And what would be the easiest way to have some proof of concept for this?

0

There are 0 best solutions below