MATLAB: How to communicate between two instances of MATLAB on the same computer using UDP

Instrument Control Toolboxinterface-based instrument communicationMATLABudp

Best Answer

You can ask udp() to use particular local ports so have one of the instances use port 32109 as its local port and have the other use 32108 as its local port and have each specify the other value as the remote port.