I am using Android Studio version 3 on Window 8.1. There is XAMPP installed to host php api on localhost. I am trying to access the localhost api from Android Studio.
In the host name, I used IPv4 Address.
When I access it from Android Version 3, using Emulator. There is no problem at all. I am using Volley for api calls.
When I try to access using Real device through USB...I always get timeout error.
I am using Real device because my RAM is very low.
Please let me know if you need more info.
Update 1
I can confirm that Android 2.2.3 is working fine to run the apk on read device through USB