test the localhost in android emulator

前端 未结 1 1815
感动是毒
感动是毒 2020-12-04 14:09

My web application runs in localhost server. In my emulator the URL is http://localhost:8080/myaction

Is it possible to retrieve the information from the server?

相关标签:
1条回答
  • 2020-12-04 14:37

    Localhost is device's own loopback interface, if you're trying to access your development machine use 10.0.2.2.

    More about it here.

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