Android: “Bad Request-Invalid Hostname” When accessing localhost from emulators

后端 未结 3 1131
粉色の甜心
粉色の甜心 2020-12-31 08:42

I am not able to use localhost with xamarin.android application. I have executed Web project & Service project(not mobile app) on Chrome Browser.

The di

3条回答
  •  半阙折子戏
    2020-12-31 09:05

    You can use our free extension Conveyor https://marketplace.visualstudio.com/items?itemName=vs-publisher-1448185.ConveyorbyKeyoti

    If the IP that Conveyor gives you doesn't work, just substitute it with 10.0.2.2. Using Conveyor solves the problem of needing to make IIS Express bind to other hostnames. It also has some other features too.

提交回复
热议问题