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?

Was it helpful?

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top