Xamarin Android Emulator. How to connect to Wifi?

Nikolay Renziglov 21 Reputation points
2022-05-19T12:12:43.46+00:00

Hi there
I am debugging my mobile app (Xamarin Forms) communicating with the Web API. Both mobile and Web API are in the same solution and starts simultaneously when hit F5 in VS. The Web API server runs on my local IIS and configured to the endpoint like 192.168.1.19:3003.

When I start my physical device (Android A6 phone, obtained IP address, say, 192.168.1.20) as a mobile client, everything works Ok. When I switch to emulator (accelerated with HAXM), nothing go thru' from client to Web API server.

How to make the Android emulator work in my Wifi?
Thanks

Developer technologies .NET Xamarin
{count} votes

1 answer

Sort by: Most helpful
  1. Philippe Levesque 5,836 Reputation points
    2022-05-19T13:09:06.49+00:00

    Wifi is not available on the emulator if you are using below of API level 25. info from here
    From https://developer.android.com/studio/run/emulator.html#wifi

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.