Android phone use PC's internet

I got an instruction from ChatGPT how to make a reverse tethering to use my PC’s internet on Android phone:

  1. Enable USB debugging on your Android phone. To do this, go to the Settings app on your phone, find the “About phone” section, and tap on the “Build number” seven times to enable Developer options. Then, go back to the main Settings screen, open the “Developer options,” and enable “USB debugging.”
  2. Once USB debugging is enabled, execute the following command in the terminal on your Linux PC to establish the reverse USB tethering connection:
adb reverse tcp:8080 tcp:8080

This command forwards the traffic from port 8080 on your Android phone to port 8080 on your Linux PC. You can change the port number if desired.
3. Configure the internet connection on your Android phone:

  • Go to the Settings app on your phone and navigate to the “Network & internet” or “Connections” section.
  • Tap on “Mobile network” or “SIM & network” and select your SIM card if you have multiple.
  • Find and open the “Access Point Names” or “APN” settings.
  • Create a new APN (if not available) or modify the existing one. Set the APN settings according to your mobile network provider. You may need to consult your provider’s website or support for the correct APN settings.
  • Save the APN settings.
  1. On your Android phone, disconnect and reconnect the USB cable to establish the reverse USB tethering connection properly.
  2. Verify the connection: Your Android phone should now use your Linux PC’s internet connection. You can test it by opening a web browser or any other internet-dependent application on your phone.

Not sure what should I set in a new APN connection and what should be enabled on my phone (wifi/cell internet etc). Using default APN didn’t help me. And p.4. looks weird. Is there a more specific manual?

Looks like same topic is outdated:
https://forums.opensuse.org/t/connect-android-to-linux-pc-internet-via-usb-reverse-tethering/120834/

So you want to use your mobile phone to provide Internet Access for your PC?

The way I do that (commuting to/from work) is to the Hotspot functionality on my Andriod phone and have my laptop connect to that WiFi network.

To Enable Hotspot: Settings → Network and Internet - Advanced - Hotspot and tethering → Wi-Fi hotspot

Easier then using a cable.

I would say OP wants her/his PC to provide Internet Access to her/his phone via USB cable.

2 Likes

The other way around? Make sure you have a get a WiFi Access point on the PC side.

If you are connected to the Internet using an external modem, that modem very likely has the option to provide a WiFi access point. If that is not the case, get a WiFi adapter (~€ 15) and run it access point.

I use a WiFi/Ethernet router. Also got a tip to use NekoBox on my phone.

Why don’t you connect your phone to the routers wifi directly?

Like @susejunky wrote, why on enable WiFi on that router? If you need help with that, can you share the brand/model?

Do you know what a proxy is and what you want to use it for?

I even used it on my PC.

Okay, so you know how to use proxy’s, reading about it and about “sing-box” and “Shadowsocks” I think it is used to bypass firewalls.

Did you get WiFi enabled on your router or is that no option? Do you still want to get reverse tethering working.

I did reread what ChatGPT wrote but it does not make too much sense to me, like more often it sound vaguely correct but it looks to me the details are wrong.