Is There a Limit to the Number of Bytes I Can Write Using UDP

Updated Mar 15, 2018

Reported In


  • LabVIEW



Issue Details

Is there a limit to the number of bytes I can write using UDP


UDP data packets are limited to 65535 bytes. Because this includes headers prepended by the UDP driver, the size of the user data is limited to 65507 bytes. You will receive error 113 from UDP if you exceed this limit.
If you need to broadcast more than 65507 bytes, you must manually partition the data and send each piece separately. Note that because UDP does not guarantee order or arrival, you should also include information in each packet that allows the data to be reconstructed properly by the recipient.
National Instruments recommends using TCP as an alternative in this situation.
Follow the related link below for more information on using UDP in LabVIEW.


Not Helpful