I'm trying to connect to localhost on Android Studio
I tried : localhost, 127.0.0.1, 10.0.2.2:8080
But I'm still getting the same response:
failed to connect to /10.0.2.2 (port 8080): connect failed: ECONNREFUSED (Connection refused)
I found online (Android connection to localhost) that in eclipse you should first bind the ip in eclipse settings.
But I can't figure out how to do the same in Android Studio