Tim, This sounds promising. Thanks!
Hakuthedog On Fri, Apr 30, 2010 at 7:53 AM, Tim <[email protected]> wrote: > > > On Apr 29, 8:00 pm, hakuthedog <[email protected]> wrote: > > Hello android developers, > > > > I am new in Android development, and I want to write a server/client > > program with which phone and pc communicates via USB (or whichever > > wired) interface. > > You can forward a TCP port to the phone using adb and communicate via > that. > > I.e, on the phone: > > ./server --port 2345 > > On the PC: > > ./adb forward tcp:2345 tcp:2345 > ./client --port 2345 localhost > > That is how proxoid (and I assume pdanet) work. > > On linux you could set up a script to do the port forwarding > automatically when you plug in the phone. Not sure about windows. > > -- > 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]<android-developers%[email protected]> > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en > -- 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

