Even I used the "10.0.2.2" = Special alias to your host loopback
interface (i.e., 127.0.0.1 on your development machine) in the TCP
Client (Desktop App.),

Still I'm getting the exception "java.net.ConnectException: Connection
timed out: connect".

If anybody tried and succeed in this, please help me.

Thanks in advance,


On Dec 11, 2:56 pm, szeldon <[email protected]> wrote:
> Maybe you'll find a solution here:
>
> http://code.google.com/android/reference/emulator.html#emulatornetwor...
>
> On Dec 11, 10:43 am, Andhravaala <[email protected]> wrote:
>
>
>
> > Hi I don't have an Android device.
> > To test my application I need to connect to Emulator from a normal
> > Java Application.
> > For this I created TCP Server in Android and
> > I implemented TCP Client as a normal java application in my Desktop.
> > But the problem is How to connect to Android Emulator through Socket,
> > because I don't know the emulator IP.
> > I tried with "!27.0.0.1", but it is also not working
> > Can we connect to Emulator from a standalone Java Application, if so
> > please help me in this.
>
> > Thanks in advance- Hide quoted text -
>
> - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
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