Home > Net >  Xamarin forms ASP.NET android emulator cannot access localhost API
Xamarin forms ASP.NET android emulator cannot access localhost API

Time:09-27

I'm developing a Xamarin forms app that uses ASP.NET Web Application template. I enter image description here

Here's the ModelConvert which is json-serialized.

class ModelAccount
    {
        public string Email { get; set; }
        public string Password { get; set; }
        
        public string ConfirmPassword { get; set; }
    }

If it makes any different if I changed the port number to 61902 as suggest by enter image description here

CodePudding user response:

On the settings you have define the port number - usually this is a random port so probably have change on your system. Check on witch port your local iis is running when you run visual studio and change that according.

settings

  • Related