How to connect android application running on a device to a local web application?

Posted by guna on Stack Overflow See other posts from Stack Overflow or by guna
Published on 2011-02-20T18:08:31Z Indexed on 2012/09/20 9:38 UTC
Read the original article Hit count: 145

I have my droid device connected through USB and using Eclipse for debugging my application running on the device. Everything is fine, except my application needs to connect to a web application running on the same host computer (Windows XP, IE). The web address on the IE was "http://local:4566/MyApp/".

I tried to set my android app to "http://10.0.2.2:4566/MyApp", but no luck. The android app's connection simply times out. The document under http://developer.android.com/guide/developing/tools/emulator.html says that the ip address may be different for devices (see Network Address Space section) but no further details on how to find that.

Question is, how to I connect to a local web application running on my host computer (windows xp) from an Android application connected through USB running debug under Eclipse?

Appreciate any help.

thanks, Guna

© Stack Overflow or respective owner

Related posts about android

Related posts about web-applications