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:
- Get the IP address of your PC using:
ipconfig
command in your Laptop's command prompt. - Instead of using
localhost
, you should useipAddress
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)"