A simple UDP communications application

Sends/receives UDP packets using Matlab's Java interface.

Download
Download

You are now following this Submission

Cite As

Kevin Bartlett (2026). A simple UDP communications application (https://uk.mathworks.com/matlabcentral/fileexchange/24525-a-simple-udp-communications-application), MATLAB Central File Exchange. Retrieved .

Acknowledgements

Inspired by: TCP/IP Socket Communications in MATLAB

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.2.0

At suggestion of Dennie Craane, added ability to specify a source port number in addition to the target port number when sending packets.

Download
1.2.0-0

Forgot to attach new version of judp.m on last update.

Download
1.1.0

Added socket.setReuseAddress(1) in order to make reuse of port numbers more reliable after pressing ctrl-C (thanks to Adam Becker for the suggestion). Also tidied up some MLint messages.

Download
1.0.0

Download