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 <saikiran....@gmail.com> wrote:
> hi
> i have gone through folllowing link for socket 
> communicationhttp://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 android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to