I am looking to use Android phone as the proxy server, so I setup "Proxy Server" on my android phone -> Connected phone to Wifi -> Got local IP of phone -> Connecting to phone thru LAN (from my local computer) thru the proxy and its working BUT phone is using same WIFI connection to connect back to Internet. So i got 2 questions:

1) Is there any way to force Android to use Mobile data to access internet which it still have WIFI on ?

2) I can not connect thru that proxy from Internet when i am using phones IP address . I am getting error "Connection refused", I did some research and looks like some ISP blocking some or most ports. How do deal / bypass that ?

Thank You Very Much Any help greatly appreciated.

migrated from softwarerecs.stackexchange.com Apr 6 at 23:23


  • (1) Why don't you connect PC to phone through hotspot, and phone to internet through mobile data? You can go other way too; create hotspot on PC and connect phone to it through wi-fi, as well as to internet through mobile data. Its also possible to connect to a third wi-fi source while the phone is using mobile data for internet. All situation require some manual configurations on both sides, and necessarily a rooted phone. (2) You have to deal with Carrier Grade NAT. See this: android.stackexchange.com/a/205807/218526 – Irfan Latif Apr 9 at 21:22

You are trying to connect to a local network from a public network..

Using WiFi allows the local connection as you've mentioned but using Internet is different because it is not a device on the same WiFi network ( local )

To connect to a public ip, the device should have a server... Try looking into making a simple http server for either the PC or Phone.

Your Answer
