It might be obvious linux savvy folks, but trying to access localhost or 127.0.0.1 with the android emulator in order to access a local server for testing won’t get you anywhere. That’s because the IP is used internally by the undlying linux as you might have guessed.
Luckily there’s an IP you can use to achieve hitting your local apache/tomcat/whatever : 10.0.2.2