Chengdu Ebyte Electronic Technology Co.,Ltd NB124E_User ManualCopyright ©2012–2023,Chengdu Ebyte Electronic Technology Co.,Ltd4.4.2 TCP ClientWhen the device is working, it will actively initiate a connection request to the server andestablish a connection to realize the interaction between serial port data and server data.To use the client, you need to configure the IP address/domain name and target port of the targetaccurately.The two channels can independently open 2-way TCP clients.4.4.3 UDP ServerUDP Server means that the device does not verify the source IP address of the data when usingthe UDP protocol to communicate. After receiving a UDP data packet, it saves the source IP addressand source port of the data packet, and sets it as the target IP and port, so The data sent by the deviceonly sends data packets to the source IP address and port where the device received the data lasttime.This mode is usually used in scenarios where multiple network devices communicate with thisdevice, and the frequency is high, and the TCP Server cannot meet the conditions.Using UDP Server requires the remote UDP device to send data first, otherwise the data cannotbe sent normally.【Note】In UDP mode, the data sent by the network to the device should be less than 512Bit per packet, otherwiseit will cause data loss.4.4.4 UDP ClientUDP Client is a connectionless transmission protocol that provides transaction-oriented simpleand unreliable information transmission services. There is no connection establishment anddisconnection, and data can be sent to the other party only by configuring the destination IP anddestination port. It is usually used in data transmission scenarios where there is no requirement forthe packet loss rate, the data packets are small and the sending frequency is fast, and the data is to betransmitted to the specified IP.In UDP Client mode, the device will only communicate with the configured (target IP and targetport) remote UDP device.In this mode, the destination address is set to 255.255.255.255, and the sending data will be