IIS Express access from Android emulator

后端 未结 2 1414
醉梦人生
醉梦人生 2021-01-11 12:44

I know similar questions have been asked many times, but I still can\'t get it working correctly. I\'d like to be able to access IIS Express on my host machine from my Visua

相关标签:
2条回答
  • 2021-01-11 13:20

    In your .NET project Go to project settings | Debug and replace "localhost" to your loopback adapter "127.0.0.1" in your "app url" string.

    Worked for me. app url setting in .NET project/debug settings

    0 讨论(0)
  • 2021-01-11 13:30

    You missed a few basic facts. 10.0.2.2 on Android emulator is translated to 127.0.0.1 on the host. Thus, change your bindings to

    <binding protocol="http" bindingInformation="*:7265:127.0.0.1" />
    <binding protocol="https" bindingInformation="*:44300:127.0.0.1" />
    

    You can also remove host headers from bindings by following this blog post,

    https://blog.lextudio.com/how-to-let-android-emulator-access-iis-express-f6530a02b1d3

    0 讨论(0)
提交回复
热议问题