Find the IP address assigned to the device you want to use, then bind() your port. Typically this is done by the server.
For the client application, it can perform a connect(), and then rely on send() to send messages. Alternatively, the client can use a sendto() and provide the server's IP address and port number.
|