I am using Windows.
I am trying to access (node.js)api running on localhost through USB Device from Android Studio. I tried to access it like this
but did not work.
Also tried to access it like this
Also tried to access it like this
but did not work.
I have already disabled Firewall.
Error Message is : com.android.volley.TimeoutError
Am I still missing anything?
I can confirm that my api is working perfectly and tested through postman Chrome extension.
Also tried below code. But still get Timeout error.
request.setRetryPolicy(new RetryPolicy() {
@Override
public int getCurrentTimeout() {
return 50000;
}
@Override
public int getCurrentRetryCount() {
return 50000;
}
@Override
public void retry(VolleyError error) throws VolleyError {
}
});