On Apr 29, 8:00 pm, hakuthedog <fjk89...@gmail.com> 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 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