简体   繁体   中英

Android emulator cannot connect to IIS deployed site

I have deployed my site on IIS 7. I want to consume some services written in that site by Android emulator. If I run that website locally (using Visual Studio), I can connect to site through Android emulator. But I specify address for IIS deployed site, it cannot connect thus throws an exception. Any ideas how to get rid of this problem? Do I have to make any settings in IIS?

add the IP address of your system within the IIS Express applicationhost.config file bindings sections.

<bindings>
<binding protocol="http" bindingInformation="*:40000:localhost" />
<binding protocol="http" bindingInformation="*:40000:192.168.5.118" />
</bindings>

Replace with your own address and port.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM