0

Am I able to use my Android smartphone with 4G LTE internet access as some kind of gateway to internet?

I need anyone who is connected to my local network made with Wi-fi router to be able to access internet.

My Android phone is also connected to this network by Wi-fi.

I do not mean Wi-fi HotSpot on phone or WDS. Those are useless to me.

My phone is rooted so I am able to make some routing there if nessesary.

Is it even possible?

enter image description here

Baterka
  • 137
  • 1
  • 6
  • 4
    What you say you want is exactly what a hotspot is! Why then do you say you don't want it? This is contradictory. – Michael Hampton Sep 23 '20 at 17:18
  • 1
    I want working home system (because of IoT devices), but without Internet. When I arrive to home I want to connect my phone and give all devices in network Internet. – Baterka Sep 27 '20 at 07:46
  • 2
    That's a hotspot and it's already built in to your phone. Just turn it on. – Michael Hampton Sep 27 '20 at 14:02
  • 2
    A hotspot requires all devices to connect to the phone's ad hoc WiFi network. That's a limitation. As the author states, The goal should be to use the phone as a gateway to an existing lan/WiFi network. – GGGforce Apr 10 '21 at 07:13
  • I've written a working answer for the same [here](https://android.stackexchange.com/a/246574). Hope it helps. – ManSamVampire May 07 '22 at 11:23

3 Answers3

1

It is possible, though your Asus router may not support it.

Your picture is actually close to what you need. One correction is you need two wifi networks:

  • "hotspot" network. You put your phone into hotspot mode and have your router connect to it as a client.
  • "client" network - is a "regular" wi-fi network. Your router will act as access point and all other devices will connect to it. (Note: your phone won't connect to this network).

Then you need to configure your router to use "hotspot" network as gateway for all devices from "client" network. It'll probably involve NAT in IPv4 and potentially some tricky subnetting or address translation in IPv6.

Update: here's the picture: Using phone as gateway

rvs
  • 4,125
  • 1
  • 27
  • 31
0

A proposal: You can use your phone connected through usb cable (usb tethering) to a server acting as router, firewall, even proxy. The usb connection will make a new usb ethernet interface, Internet facing, another interface, NIC or WLAN can connect to Asus wifi and provide access to the Internet to all your WiFi network.

Else, as Michael Hampton mentioned, you just do the same thing but with added complexity. Perhaps you need many concurrent connections, that's a scenario I can think of where there's a point connecting to a dedicated device for the task, than to mobile phone AP.

Krackout
  • 1,575
  • 7
  • 20
  • I dont want many connections but I need working home network without internet access and get internet access when I connect phone. – Baterka Sep 27 '20 at 07:49
0

Sure, a phone as a hotspot is technically a gateway, but it's a super limited one. For instance, I cannot stream to my chromecast using my phone and phone as a hotspot because chromecast cannot connect to my hotspot network and I can't modify any of the network settings beyond the password.

I believe the solution would be to get an access point and then connect that to a router. You should be able to wirelessly receive and relay the phone data connection through ethernet on to the router.

Then it aught to be the same as if you're plugging in a modem, and you have complete control over this new network and can do MAC address filtering, port forwarding, network analysis, and all that fun stuff.