MATLAB Answers


How do I configure MATLAB Parallel Server using a 3rd party scheduler to work within a firewall?

I am installing MATLAB Parallel Server and Parallel Computing Toolbox. I plan on using a 3rd party scheduler instead of MATLAB Job Scheduler. My network has a firewall, and I would like to know which ports need to be opened.


No tags entered yet.

1 Answer

Answer by MathWorks Support Team on 27 Mar 2019
Edited by MathWorks Support Team on 27 Mar 2019
 Accepted Answer

If you plan on using the MATLAB Job Scheduler as your scheduler please see this information instead:
Cluster Ports
For communicating jobs and parallel pools the SMPD process opens a listening port in the range: 20000 to 30000
The exact port is based on the job ID. This port is only used for communication between workers. Access to this port is not required from outside of the cluster.
Client Ports
Ports only need to be opened for interactive parallel pool jobs. By default, the port range needed is: 27370 to 27470
This port range can be controlled using the function pctconfig in MATLAB on the client machine.
The client machine will be expecting inbound communications on this port range from the cluster workers. The cluster workers will use ephemeral ports to make their outbound connection.
If the MATLAB client machine does not have the daemons needed for the particular cluster submission on the same machine then submission to the cluster will take place via ssh using port 22. This will apply for generic integration script clusters using remote or non-shared script templates.
FlexNet Licensing Ports
The Network License Manager will need the port 27,000 and 1 additional port to be open for inbound connections on the machine it is running on. The MATLAB workers will need to be able to connect to these listening ports to successfully request licenses. These ports can be configured please see this information:
MathWorks Hosted Licensing
Port 443 for https needs to be open on for outbound communication from cluster machines if the cluster is set to use Online Licensing.
NOTE: Starting in R2019a the following name changes occurred:
  • MATLAB Distributed Computing Server was renamed to MATLAB Parallel Server
  • mdce_def was renamed to mjs_def
  • mdce binary was renamed to mjs


Sign in to comment.