Main Content

UDP Send

Send UDP packets

Add-On Required: This feature requires the Simulink Support Package for Android Devices add-on.


Simulink Support Package for Android Devices / Communication

  • UDP Send block


Send a UDP packet to a network address identified by the Remote IP address and Remote IP port parameters.

The block accepts a one-dimensional vector of variable length.

The block input supports the following data types: uint8, int8, uint16, int16, uint32, int32, single, and double.


If you are having trouble using UDP to communicate between your host computer and your Android® device, investigate whether antivirus or firewall software is blocking UDP traffic. If so, try to configure the software to allow UDP traffic for a specific IP port number.


Remote IP address (‘’ for broadcast)

Enter the address or hostname of the IP node on the remote device.

To broadcast the UDP message to all devices, use the default parameter value, ''. Often, IP routers are configured to drop broadcast UDP packets sent to ''. Consider using the specific IP address of the remote device to avoid creating unnecessary broadcast traffic.

Remote IP port

The number of the IP port on the remote device, which can range from 1 – 65535. This value defaults to 25000.

Extended Capabilities

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

Version History

Introduced in R2014a