I'm trying to let my Android phone access internet over a host computer, via a USB cable. The solutions that I can find all seems to require a rooted phone.
However, all current generation Android phones supports USB network tethering. Turning on USB tethering would let the phone present itself as a RNDIS USB network adapter, which automatically puts the host computer and the phone into one LAN.
In this scenario, theoretically it's possible to reverse tether the host computer's internet connection to the phone by turning the host computer into a software router.
So the question is, how to configure the host (and the phone) for that?
(I have Windows11 and Ubuntu dual boot so solutions for either OS works would work for me.)