Ideas

1) put the phone on a local wifi network along with the pc hosting
your test server.

2) run the test server on the phone

3) you can use an adb forward to let the pc connect() to the phone.
Write something on each end to proxy & tunnel connections back out.

4) deploy your server on the internet

5) Get a rooted or dev phone and hack on its network or adb stacks or
drivers to permit reverse tethering like the emulator

6) use a vpn ?

On Sep 2, 3:45 pm, paladin <[email protected]> wrote:
> 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