Invalid HostName - Not able to connect IIS express from Android Emulator

后端 未结 4 1806
慢半拍i
慢半拍i 2021-01-06 01:21

I am trying to connect a WCF service hosted at my local IIS express from an Android app. Currently, I am testing this on an Emulator.

Local URL for the service is <

4条回答
  •  心在旅途
    2021-01-06 02:13

    As I understand it, 10.0.2.2 is an alias for 127.0.0.1, so add that to your applicationhost.config binding for your site, e.g.

     
        
          
        
        
          
          
        
      
    

    Bear in mind that these days if you're using Visual Studio the relevant applicationhost.config for your site may not be in c:\users\... but rather in a .vs\config folder at the root of your solution.

提交回复
热议问题