Skip to content Skip to sidebar Skip to footer

Android - Error While Try Connect To Local Server(xampp)

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 public static String mak

Solution 1:

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

Post a Comment for "Android - Error While Try Connect To Local Server(xampp)"