Hi Erel .
I have been reading that post , but i did not se how that can help me .
I want to use 4G for all internet adresses and for local ( 192.168.4.1) that is the adress of the ESP wich i use as gateway for serial data .
If the link above can do this , then i have to try some more ...
It is not possible to control the routing of each connection. This code however will help you keep the non-internet enabled network connected. Without it Android might prefer the cellular network.