MATLAB: What ports are used for communication between Polyspace Clients and Polyspace Server and how can I change it

Polyspace Client for AdaPolyspace Client for C/C++Polyspace Server for Ada

What port numbers are used be default? How do I change the port number the Polyspace Client computers communicate with the Polyspace Server on via the Remote Launcher?

Best Answer

Five distinct port numbers are available to communicate:
1. The default port number for communication between Polyspace Server/Client or Desktop/Cluster with Polyspace Metrics is 12427.
2. The default port number the Polyspace Client/Desktop communicates with Polyspace Metrics to download results is 12428.
3. The default port number the Polyspace Server/Cluster and the network license manager communicates on is 27000
4. The default port number for tomcat server is 8080
5. Since R2013b, the default port for MATLAB Parallel Server is 27350
See item D for the complete ranges 
A. Changing Port number the Polyspace Server/Cluster and Client/Desktop communicate
===========================================
  • Changing Port On Server during install
When you finish installing the Polyspace Server software, the Polyspace Remote Launcher Manager dialog box opens. Here you can change the port number the Polyspace Server uses to communicate with the Polyspace Client machine. The communication port is set in the Polyspace Remote Launcher Manager on the Polyspace Server at the top of the screen under "Common Settings".\n
  • Changing Port On Client
By default the PolySpace Client attempts to automatically detect the Polyspace Server host on port number 12427. To set this to be a specific hostname and port number:\n
  1. Open the Polyspace UI 
  2. Go to the Options menu to Preferences… (R2010a or prior: Go to the Edit menu to Options>Preferences…)
  3. Go to the Server configuration tab (R2010a or prior: Go to the Remote Launcher tab)
  4. Choose the option to "Use the following server and port" and enter in the PolySpace Server hostname and port number
  5. Press OK to set the PolySpace server
NOTE: If the client cannot find the server, it will give an error "No QueueManager server found"\n
  • Changing Port On Server Post Installation
If you would like to change this port on the server to not be the default post installation, you can edit the polyspace.conf file: cpu=hostname:portnumber
For example:\n
cpu=polyserver:12490
By default, the polyspace.conf file is found in:
Windows: C:\Polyspace\Polyspace_RLDatas\
Linux: /etc/Polyspace/
For this change to take effect you would need to stop and restart the Polyspace daemon.
B. Changing Port number the Polyspace Client/Desktop communicates with Polyspace Metrics
===================================================
By default the Polyspace Client communicate with Polyspace Metrics on port number 12428. To set this to be a specific port number:\n
  1. Open the Client Graphical User Interface (or PVE)
  2. Go to the Options menu to Preferences… (R2010a or prior: Go to the Edit menu to Options>Preferences…)
  3. Go to the Server configuration tab (R2010a or prior: Go to the Remote Launcher tab)
  4. Choose the option to "Port used to communicate with the Polyspace Metrics web interface" and enter in the port number
  5. Press OK to set the Polyspace new preferences
C. Changing Port number the Polyspace Server/Cluster and network license manager communicate
=====================================================
All MathWorks products communicate the same way with the network license manager. Please look at related Solution 
===================================
Open ports like below if you use one cluster (one MJS  and one worker).
 \nNOTE: Starting in R2019a the following name changes occurred:\n\n
  • MATLAB Distributed Computing Server was renamed to MATLAB Parallel Server 
  • mdce_def was renamed to mjs_def
  • mdce binary was renamed to mjs