Of course it won't. Here comes the
virtualization in picture.
Quote:
Android will not be able to communicate with Visual Studio's Development Server, hence you would be required to deploy your services at IIS and with help from your local system IP address, provide DNS to Android.
You android emulator is a different device (or rather I'd say, device running the android OS) that runs on the same machine, which already have OS running on it.
Let me give you one simple example to understand this, your machine would have any IP address, but this emulator-AVD also would have the IP address, which is not as same as you machine's.
So it won't access any of the resources from your machine. If you're running this URL
http://localhost:33396/MainWEB.svc
on emulator itself, it won't work but in your local machine's browsers.
If you might have noticed the URL in my answer, it consist of
machine's IP address.
So host your WCF service on your local IIS, access this service from IIS. Then you'd get service URL replacing localhost with your machine IP and that is accepted by AVD. For example URL would be,
http://192.175.21.15/MainWEB.svc/
.
You can get a help for hosting the WCF on IIS from,
http://msdn.microsoft.com/en-us/library/ms733766(v=vs.110).aspx[
^]
A Beginner's Tutorial on How to Host a WCF Service (IIS Hosting and Self Hosting)[
^]
Create, Host (Self Hosting, IIS hosting) and Consume WCF Service[
^]
Hope you got the idea ! :)
-KR