Android emulator not connecting to localhost api

后端 未结 2 1001
逝去的感伤
逝去的感伤 2020-12-02 00:31

I have a Xamarin app and localhost API. I\'m trying to connect to the API from the app, but it could not be found. I edited my applicationhost.config file and I

2条回答
  •  Happy的楠姐
    2020-12-02 01:03

    That 10.0.2.2 address is used for the Google emulators. For the Microsoft emulator you want to use 169.254.80.80. If that doesn't work then it must mean you have the firewall on and it's blocking the traffic. That can be solved by adding a new incoming rule for the program or port.

提交回复
热议问题