Multiple users in the same tcpip under Matlab environment (MATLAB 2012a or later versions) Combined with Psychtoobox; Here, 2 clients (or 3, 4, 5) and 1 server.
-
Replace the port (number) for 2 different number. 2.And replace clients' ip XXX.XXX.XXX.XXX from your server computer local ip.
-
Starting from server code, then move to client 1 and client 2.
-
Press any key, you would see output 'yoyo' from client 1 and client 2.
-
Then you are successful to connect with multiple clients now.