I have an app that comunicates with another device which is with static IP: 192.168.42.x. In the earlier version of Android, it workds all well because USB tethering always get a 192.168.42.y address for my phone. But as the "strange feature" : "ETH tethering" imported in Android 11, the IP policy was changed to random for USB tethering and that made my APP cannot communicate with my device again. It may get 192.168.50.x for my phone or else, and my device IP cannot be changed. They becomes to be strangers now.
Constraints:
- Root the phone is impossible for me, as my APP will be dispatched for various users.
- Android version: 11. As I described.
- Networking is USB tethering.
I have tried for several different ways and get no success. So I come here for help: whether there's any way to set a static IP address for my andoird phone and make it same subnet with my device that with fixed IP without root my phone? Or actually its impossible at all?
Any advice will be helpful. Thank you in advance.