There are different ways to achieve this depending on your operating system, so I will share methods for Windows, Mac, and Linux systems.

Windows:

Mac:

Linux:

Please note this requires a rooted Android phone – you can search Appuals for Android root guides for your device. You’ll also need ADB and Fastboot installed, which is easily obtained with: sudo apt-get install android-tools-adb android-tools-fastboot Finally, you should have a Terminal Emulator installed on your phone. Ifconfig sudo iptables -t nat -F sudo iptables -t nat -A POSTROUTING -j MASQUERADE adb shell busybox ifconfig adb shell ifconfig rndis0 10.42.0.2 netmask 255.255.255.0 adb shell route add default gw 10.42.0.1 dev rndis0 adb shell ping 8.8.8.8 If you get a successful ping, then you’re all set to go.