Android Development

Tag: browser

Ever tried ‘localhost’ with the android emulator ?

by Claudio on Mar.12, 2009, under emulator, how to

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

  • Share/Bookmark
3 Comments :, , , , more...