MATLAB supports TCP/IP communication using the Instrument Control Toolbox.
This MATLAB code example shows you how to exchange data with a remote application using TCP/IP. This example is taken from a MATLAB Digest technical article written by Edward J. Mayhew from George Mason University.