Use proxies in Visual Studio Emulator for Android

Here is a link to the emulator ad (included with Visual C 15): https://www.visualstudio.com/en-us/msft-android-emulator-vs.aspx

I would like to configure a proxy to connect to the Internet in this virtual machine. My goal is to connect through port 8888 on my host machine so that I can see this Android VM traffic in my Fiddler.

Is it possible? Android settings in the virtual machine itself do not contain access points to the mobile network, so I cannot figure out how to configure the proxy.

Thanks in advance.

+5
source share
3 answers

After starting the emulator, do the following:

  • Settings
  • WIFI
  • Long press on the network you are connected to and select Modify network config
  • Check Show advanced options
  • Finally, change the proxy settings

Hope this works for you.

+2
source

Unfortunately, it is not yet possible to control network traffic on VS Emulator for Android. This is because we consider the network connection as an Ethernet connection, and you can set the proxy server only for the WiFi network adapter in Android. This does not even work when you try to manually set the System.HTTP_PROXY variable by calling Java System.putString() , because Android grants this permission only to system applications. We are working on a fix for this, and it should be available soon!

+2
source

Source: https://habr.com/ru/post/1215965/


All Articles