I doubt this is possible, especially on iPhone. What are you trying to accomplish?
networking
Community for discussing enterprise networks and the ensuing chaos that comes after inheriting or building one.
That would be dual homing using both cell and wifi networking.
I don't think iOS can do this - and I'd be hard-pressed to make it happen on Android (honestly I don't think it can be done, maybe with root, even then, I'm not sure).
Set-up a cellular modem on your network and set your phone to WiFi?
😬
You would need to set your gateway to the cell service and then add a static route for your local subnet that points to the local WiFi.
Yes, that l’s exactly what I’m asking for in this post — is there any actual exposed config on the iPhone, or any way to set up DHCP on the WiFi, that will convince the iPhone to use its own cell service as the gateway even while it’s connected to a WiFi?
You can't do that with dhcp
You might be able to set something like this up if you turn on tethering