Android: "Bad Request-Invalid Hostname" When accessing localhost from emulators : <p>I am not able to use localhost with xamarin.android application.
I have executed Web project &amp; Service project(not mobile app) on Chrome Browser.</p>

<p><a href="https://i.stack.imgur.com/6CLaz.png" rel="noreferrer"><img src="https://i.stack.imgur.com/6CLaz.png" alt="This is emulators executed project"></a></p>

<p>The displayed port number I tried browsing in Android Studio emulators &amp; Genymotion emulators by appending 10.0.2.2: &amp; 10.0.3.2: respectively, I got result <em>Bad Request-Invalid Hostname</em>. Even I have tried <strong>Service project port number</strong>, both not working.</p>

<p>Web Project: ASP.NET project using Visual Studio 2017 &amp; Having service project in the same solution.</p>
