Android Emulator loopback to IIS Express does not work, but does work with Cassini

后端 未结 4 1494
挽巷
挽巷 2020-12-01 18:30

I am attempting to post data from an Android application running in the Android Emulator on my local machine to a web application running under IIS Express also running on m

4条回答
  •  粉色の甜心
    2020-12-01 19:23

    Add following line to IIs config file (ex c:\Users[YourName]\Documents\IISExpress\config\applicationhost.config ) Change the port 8085 if required..

    
    

    so your config file will end-up with something like this

    
         // the existing one
         // new line
    
    

    now you can call your web service from remote by calling to port 8085

    ex from android emu.
    new HttpPost("http://10.0.2.2:8085");
    

提交回复
热议问题