I'm behind a router, and the "real" IP address starts with 192... and
I tried even from a browser on my machine to connect using that "real"
IP address to the web service, and it doesn't work. Only localhost
works, and from the emulator, 10.0.2.2.

On Sep 2, 3:41 pm, Mark Murphy <[email protected]> wrote:
> On Thu, Sep 2, 2010 at 3:39 PM, paladin <[email protected]> wrote:
> > I have a web service running on my local machine, and I used IP
> > address 10.0.2.2 to connect from the emulator to that web service, but
> > when I try that on a Nexus One connected via USB, I get a timeout. Is
> > there a way to access my machine from a real phone like I can from an
> > emulator?
>
> 10.0.2.2 is an emulator thing. Use a real IP address.
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
>
> Android Consulting:http://commonsware.com/consulting

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to