Is it possible to share my phone's internet but instead of creating a Hotspot, share it directly to a router through ethernet
Here's my idea: Mobile Phone (LTE) -> USB OTG -> USB Ethernet port -> Cat5e cable -> Router
Btw, my router isn't supported by DD-WRT so that's off the suggestion list.
44 Answers
Forget the USB as the intermediate. You can accomplish what you want with a wireless bridge adapter that has a CAT5 LAN port.
Program the wireless bridge to your phone's hotspot and then plug the LAN port on the bridge adapter to your Router's WAN port.
This GL.iNet GL-MT300N Mini Travel Router is probably a good bet, as you can program it with DD-WRT for ultimate flexibility. I think someone in the Q&A section confirmed they are doing what you want with this VONETS VAP11G-300. Pretty sure any wi-fi repeater that has a LAN out port for connecting wired devices should work for you.
2Newer Android devices with Android 11 come with Ethernet Tethering support built-in. For example, in this setup, I connected my phone (Galaxy S21) and my laptop over a LAN cable:
The Android phone acts as a router itself, which allows internet to be shared without an intermediary router. However, I think you can also use it with an existing router using NAT or bridged mode.
I've done something similar.
I have an OpenWRT router installed on a VM. I then have another VM on the same server running Ubuntu 20.04.
With Proxmox I can add a new VLAN interface to each VM (basically I have a single ETH port which runs my LAN on VLAN 0, the default VLAN, and on VLAN 100 I have this bridge between OpenWRT and the VM).
Because the VM is running Ubuntu, I have all correct drivers to handle tethering and if I bridge the tethering interface and the VLAN 100 I can add a new interface to OpenWRT (eg. ETH0.100) and get tethering to this virtual ethernet.
The coolest thing about this architecture is that I can even load balance the ethernet network provided by my ISP and tethering devices (luckily mwan3 package works like a charm).
Yes, I know this OpenWRT guide, but unfortunately, USB passthrough to OpenWRT has some issues.
Using OpenWRT on a VM is much more flexible than having it on a router. If you don't have any compatible router (or like me you brick the only one compatible), you should give VM a try.
One possible issue you could have due to VLANs is that you are using a very low-end unmanaged switch which does weird things with VLANs. In this case, you have to buy a managed switch and block all VLANs which aren't useful for your network.
One last thing, if you don't want to use Proxmox (I highly discourage this), I know it is possible to install OpenWRT on Docker, but as far as I know, you will likely to encounter lots of issues.
Download PDANet.apk....in Play store buy FoxFi license 7.99...turn on pdanet check usb connect and hide tethering. On PC download same version of pdanet for windows...open it and settings check auto connect usb. Plug phone into PC usb ..boom you have a tethered connection 10.0.19.2 255.255.255.0....go to PC Ethernet connection and manually set ipv4 address 10.0.19.3 255.255.255.0 gateway 10.0.19.1hook Ethernet cable to router wan port...login to router and change wan ip manually to 10.0.19.4 255.255.255.0....you can WiFi all your other devices to router and the PC will Jank route to your usb connected 4G or 5G
1