krlvm / PowerTunnel-Android

Powerful and extensible proxy server with anti-censorship functionality for Android
GNU General Public License v3.0
1.64k stars 123 forks source link

Bind outgoing connections to mobile data interface #135

Open apirahim opened 1 year ago

apirahim commented 1 year ago

I would like to add an extra feature that I need, to listen for the proxy server on Wifi interface, but for outgoing connections use mobile data How can I do it? from the little research I've done I know that this is the method for it "connectivityManager.bindProcessToNetwork(network);" but I don't know how to add it just for outgoing connections

krlvm commented 1 year ago

Are you sure that it is possible? I don't think this is the right place to ask such questions.

apirahim commented 1 year ago

@krlvm I have no experience with Android dev, but I am researching how to do it There aren't a lot of apps that provide flexibility when setting up the server, but it should be possible to bind to a specific network using the method I mentioned above

Now my goal, is using the mobile data from a distant computer, I was able to do it with FRP which solves the NAT problem in mobile network, but it's too slow for my use. Also using mobile data for incoing and outgoing connections will double bandwidth consumption

Your app is much faster, but I am lost in the code because it's built on top of Little proxy