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

后端 未结 4 1833
慢半拍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:21

    1. What's with "port 40000"???????
      I'd definitely try a lower port number (like something below 32768 ;))
    2. Make sure your androidmanifest.xml has internet permissions
    3. Make sure "api/authenticate" is defined and available in IIS
    4. Make sure Windows firewall isn't blocking port 40000
    5. Useful tools include:
      • ping (so you can "ping 10.0.0.2"; available in OOTB Windows)
      • telnet (so you can "telnet localhost NNN"; you must add this in Windows Features)
      • Firefox and Firebug
      • Wireshark

提交回复
热议问题