Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Use proxy in Visual Studio Emulator for Android

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

I would like to set up a proxy for the Internet connection in this VM. My purpose is to connect through port 8888 on my host machine so that I could see this Android VM's traffic in my Fiddler.

Is this possible? The android settings in the VM itself do not contain any mobile network access points and therefore I can't figure out how to set up a proxy.

Thanks in advance.

like image 363
Lev Dubinets Avatar asked Mar 24 '15 03:03

Lev Dubinets


2 Answers

We've made this work as of Visual Studio 2015 RC. See http://blogs.msdn.com/b/visualstudioalm/archive/2015/05/06/using-fiddler-to-monitor-network-traffic-from-the-vs-emulator-for-android.aspx for the full instructions.

like image 198
John Kemnetz Avatar answered Nov 15 '22 00:11

John Kemnetz


Once you have launched the emulator follow the steps below.

  • Settings
  • WI-FI
  • Long tap on network you are connected to and select Modify network config
  • Check the Show advanced options checkbox
  • Lastly change the proxy settings

Hope this works for you.

like image 34
Kevin Crain Avatar answered Nov 15 '22 00:11

Kevin Crain