MATLAB: Does UDP receive block work in R2011a but Legacy UDP receive block does not work in R2016a (Real-Time UDP library)

antivirusfirewalllegacypacketsreceivesendudp

I am using the Legacy UDP send block in Simulink Real Time R2016a.  I have a UDP Receive block in a model running in Normal mode in MATLAB R2011a.  The UDP packets are received as expected in this setup, but as soon as I upgrade the receive side to MATLAB R2016a, there are no packets getting detected by the Legacy UDP receive block.  The Legacy UDP receive block is exactly the same as the block used in R2011a so the only change is the MATLAB version.  Why is the UDP receive block not detecting the packets in R2016a?

Best Answer

If there's a firewall in the PC it may actually block the communication from the target computer to the PC so no packets are received.  In this case, system center endpoint protection was activated on the host machine.  Disabling this firewall resolved the issue.  This is mentioned in the documentation:
Related Question