Android - error while try connect to local server(Xampp)

前端 未结 1 1792
离开以前
离开以前 2021-01-17 05:41

here\'s my logcat and the first line the url i try to connect with and it\'s valid url

her is my code that cause the error and make the connection to refuse

相关标签:
1条回答
  • 2021-01-17 06:17

    Since local host for Emulator and Laptop is different, you need to do following:

    1. Get the IP address of your PC using: ipconfig command in your Laptop's command prompt.
    2. Instead of using localhost, you should use ipAddress in your URL.

    So your address will become: http://<ip address>/lotus/getstats.php?category=ATM

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