Configure VeriStand Data Sharing Framework UDP Receive With Dynamic Source Ports

Updated May 29, 2026

Reported In

Software

  • VeriStand
  • VeriStand Custom Devices

Issue Details

I am using the VeriStand Data Sharing Framework (DSF) Custom Device for UDP communication. During UDP receive, the sender’s source IP address is fixed, but the source port changes because it is randomly assigned by the sender operating system. The source port only changes when the sender application restarts and remains constant while the application is running. Is there a way to configure VeriStand DSF Custom Device for UDP receive to accept data from a particular Source IP on any source port?

Solution

The UDP plugin in the VeriStand Data Sharing Framework Custom Device only accepts UDP packets from the source port defined in the System Definition File (SDF). Each received packet is checked against the configured source port, and packets with a different source port are discarded.

 

Use one of the following approaches:

  • Update the source port defined in the SDF to match the sender’s source port after the sender application starts. This requires modifying the SDF each time the sender restarts.
  • Modify the UDP plugin source code to allow reception of UDP datagrams from any source port.
  • Modify the UDP plugin source code to make the UDP sender port a VeriStand channel that could be written to at run time.