I am new to Java and Android programming. I have created a few very small Client-Server programs on my PC, but am having issues doing it with my android device. I am trying to use the same server piece from my preview program that listens to port 8001. When I use the same client code from my client piece in my android project it doesnt work. Do you know of any clear tutorials for sending data on a specific socket/ipaddress?
Also, I was looking into using ADB to talk over USB. I see that you can forward TCP from one port to the other using something like this: adb forward tcp:8001 tcp:23049 adb forward tcp:8001 tcp:8001? I am a bit confused on this as well.. when I create the socket on the android application what would i put for the ipaddress and socket number? (10.0.2.2, 8001)? and for the server piece would i leave it as it is listening on 8001? Any insight to this would be helpful. I have looked at sample code, but it is all very complicated and I just want a simple example of how to accomplish both of these things. -- 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