Question

I'm trying to create an android application that communicates with vb.net, this communication may be by wi-fi, but the tutorials on the internet always mention sockets, could someone explain me how communication via socket works?

Était-ce utile?

La solution

First you need to connect both devices and get their IP address. Then select a port number (a random number larger than 1000 and smaller than 65535 if you don't have preference). Then create sockets on both ends with the port number, and send packets to the counterpart with its IP/port number. That's it.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top