Visual Studio Xamarin and Android emulator without internet connection

android, visual-studio, xamarin

Solution

I'm pretty sure you resolved your problem since then, but I faced the same one and found the following solution :

In Preferences / Projects / Android, just set `-dns-server 8.8.8.8` in "additional emulator launch arguments" (not sure of how it translate in english though).

Xamarin Visual Studio Community preferences (screen capture)

Problem

I'm developing a Xamarin project using Visual Studio 2015. The issue is that I'm not able to start the Android Emulator from Visual Studio using Internet. I'm behind a proxy. Using `HttpWebRequest`, I get the error: System.Net.WebException: Error: ConnectFailure (Network is unreachable) I check out the emulator and no Internet connection detected: I was able to start the emulator setting the proxy/dns using command line (using `emulator.exe -avd avdName -dns-server 192.168.1.1`), but not from Visual Studio. My question is: is there any way to set proxy/dns configuration to Android Emulator from Visual Studio or in any configuration file, like .ini, or config.ini in Avd folder, or any other way?

Original source