A UDP connection is much like a TCP connection, as you need a server and a client. The difference lies in the validation of data, where TCP verifies, to the sender. If the message is received, the UDP never replies if the message is received or not.
Furthermore, data sent using a UDP connection is not guaranteed to reach the receiver. The benefit of using UDP is that when data is sent to a UDP server, there is no need to establish a connection, and therefore many UDP clients can send data to the same UDP server simultaneously.
You need to know the IP address and the port number of the receiver of your UDP data. If you need to send data to multiple units in the LAN, you can use a UDP broadcast instead of sending the data to each unit.