The ip to work tcp connections local using the emulator is "10.0.0.2"
Hope this will help, On Jun 18, 11:53 am, mah <[email protected]> wrote: > After the emulator is started, and before you start your PC > application, use this command: > adb forward tcp:12345 tcp:12345 > Which will forward TCP packets from the PC's IP space into the > emulator on port 12345. > > Then, on the PC, open a connection to localhost (127.0.0.1) on port > 12345, and you'll get through. > > On Jun 15, 9:41 am, saikiran n <[email protected]> wrote: > > > > > hi > > i have gone through folllowing link > > forsocketcommunicationhttp://www.codeweblog.com/android-simulator-and-pc-communication-usin... > > It is working fine. > > But my requirement is i want to start server in emulator and client in my pc > > What is the ip address to give in my client program. > > I used 10.0.2.15 in my client program but it is unable to connect. > > And i also tried with my pc ip even though it is not working > > Any help please -- 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

