• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

HTTP vs localhost

23tony

Well-Known Member
I just learned that you can't use localhost on the emulator, since it's actually a separate device (so localhost from the emulator is the emulator). I found a suggestion to use 10.0.2.2:8080, but that didn't do any good, and I couldn't find much more.

So I'm wondering, how do you do HTTP requests against your dev system?
 
Well 8080 is the default port used by Tomcat. If it's not listening on the host dev system, you'll never get a reply ;)
 
Back
Top Bottom