MATLAB: Weired Problem with parallel computing

parallel computingParallel Computing Toolbox

I activated two Matlab programs and run two paralleling jobs at the same time on each Matlab program. After some number of loops, the parallel computing process stops and the messages are shown below.
java.net.SocketException: Unrecognized Windows Sockets error: 0: JVM_Bind
Could anyone could help this problem? I would really appreciate.

Best Answer

I think this can be related to a too small port range for Parallel Computing Toolbox. Try to make the port range bigger. How you can do this can be obtained in the documentation: