Main Content

UDP Write (HOST)

Send UDP packets from host computer to remote host

  • UDP Write (HOST) block

SoC Blockset / Host I/O


The UDP Write (HOST) block sends UDP (User Datagram Protocol) packets from a local host to a remote host. The local host in the host computer from which you want to send UDP packets. The remote host is the host computer or hardware to which you want to send UDP packets. The remote host is identified by the remote IP address and remote IP port parameters from host computer.



expand all

Input signal, specified as a numeric vector. The block sends this data as a UDP packets to the specified remote IP address and port.

Data Types: single | double | int8 | int16 | int32 | uint8 | uint16 | uint32 | Boolean


expand all

Specify the IP address of the remote host. To broadcast UDP packets, use the default value, ''.

Specify the IP port number of the remote host.

Set the source of Local IP port for the block by selecting one of these values:

  • Automatically determine — Assigns an available local IP port number randomly from which UDP packets are sent.

  • Specify via dialog — Allows you to specify the local IP port number using the Local IP port parameter.

Specify the port number of the local host. If this value is set to -1 (default), the block sets the local IP port number to a random available port number and uses that port to send the UDP packets. If the remote host accepts UDP packets from a particular IP port number, specify that IP port number for this value.

Extended Capabilities

C/C++ Code Generation
Generate C and C++ code using Simulink® Coder™.

Version History

Introduced in R2019a