Program Pocket PC to talk with Desktop via USB (.net)

311 Views Asked by At

How do my program on Pocket PC (.Net CF v3.5)
can communicate with program on my Desktop (.Net application) ?

The Pocket PC is in cradle, connected via usb.

Update:
I know how to use socket to open TCP or send datagrams. I know how to use TcpClient/TcpListener.

I just don't know how to give configuration for opening sockets for this specific problem, or search for IP's to use TcpClient/TcpListener ... or ?

(i.e. how my app on pocket pc discovers the IP of the computer ?)

1

There are 1 best solutions below

3
On BEST ANSWER

If you read Beej's Guide to Network Programming - Using Internet Sockets you'll understand the basics in order to exhange data between 2 sockets.

ActiveSync opens a new local IP in the PC. That allows a pocket device to communicate with a remote host with sockets through the USB!

(There is also an API for the ActiveSync but I never used it)

Edit: Probably I'm wrong about the ActiveSync. You don't need it. If a pocket device is connected on the USB the OS creates a temporary LAN, eg: under the domain 169.254.2.x, so that networking can be accomplished.