TEXT 28
Android Proxy over vpn to burp Guest on 19th July 2018 12:17:54 PM
  1. If your company/institution allows you to access the internet only via a proxy server, that adds an extra bit of complication for you to use any application that uses internet. The easiest work around for this is to set the relevant environment variables for the different protocols so that they take effect systemwide. But this article is not about how to apply proxy settings on your computer. You can find tons of tutorials for that.
  2.  
  3. You can share your computer's internet connection (working behind a proxy server) with other ones by creating a wifi hotspot. Again there are a lot of tutorials on this. So, I'm not going to explain how. This tutorial is about how to use this wifi on your Android device. By default, you can't access the internet on your device using this wifi. As a quick fix, you can configure the wifi settings as follows to work behind proxy:
  4.  
  5. On your android device, go to Settings -> Wi-Fi -> Long press the wifi ssid (in my case myHotspot) -> In the popup, press Modify Network Config -> Check Show advanced options -> Scroll down and set Proxy settings to Manual -> Set Proxy hostname to the IP address of your proxy server -> Set Proxy port to 3128 -> And click Save.
  6.  
  7. But the above procedure will only let you to use the default Internet app and may be a few in-built apps. Most apps (e.g. Google Play) will just say Connection Failed. Retry. As a work around, you need to do something that applies the proxy settings globally such that all the apps can use it. Among the famous android apps that accomplish this are ProxyDroid, Android Proxy, etc. But all of them need your device to be rooted. Rooting an android device was quite trivial 2 years back but now it's a painful job with the advent of Jelly Bean. Rooting lets you use your device to the fullest but at the same time, voids its warranty. Fortunately, I came across a proxy app called Drony that doesn't need rooting. You can use it by following these steps:
  8.  
  9.  
  10. Install the app from Google play. Sorry, but for this, you need to use your mobile data or any other wifi.
  11. On your android device, go to Settings -> Wi-Fi -> Long press the wifi ssid (in my case myHotspot) -> In the popup, press Modify Network Config -> Check Show advanced options -> Scroll down and set Proxy settings to Manual -> Set Proxy hostname to localhost -> Set Proxy port to 8020 -> And click Save.
  12. Go to Drony app on your device -> Settings tab -> Uncheck Proxy is visible from outside -> Proxy port 8020 -> Scroll down and in the Networks section, Press Wi-fi -> In the Network list, scroll down and select your wifi hotspot that's running (you should see localhost:8020 below it's ssid) -> Set Proxy type to Manual -> Set Hostname to the IP address or domain name of your proxy server (in my case, hproxy.iitm.ac.in) -> Port 3128 -> Set Domain or Realm to home -> Enter your Username and Password that you use for proxy authentication -> Go to the Home tab in Drony and Press ON at the bottom. That's it.
  13. Now every app will recognize your proxy settings and can use internet hassle free. If Google Play gets stuck at the Downloading... message or you get a 500 error, follow the instructions listed here.

Paste is for source code and general debugging text.

Login or Register to edit, delete and keep track of your pastes and more.

Raw Paste

Login or Register to edit or fork this paste. It's free.