The TCP/IP Send and TCP/IP Receive blocks operate only in TCP/IP client mode (they need to connect to a TCP/IP server) and perform operations equivalent to FWRITE and, respectively, FREAD in MATLAB. Theses blocks do not support TCP/IP server functionality.
As a possible workaround, you can use a MATLAB function block to achieve the communication. See the attached example models, and MATLAB scripts
Your firewall / antivirus is blocking the connection
There is nothing listening on port 9300
the connection you're trying to establish is meant to be the server , in which case you needt = tcpip(tcpip('127.0.0.1', 9300, 'NetworkRole', 'server')
Best Answer