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?

有帮助吗?

解决方案

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.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top