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

20 views (last 30 days)
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?

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 13 Nov 2023
Edited: MathWorks Support Team on 13 Nov 2023
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.

 

IMPORTANT NOTE

The last release Polyspace Metrics was available in was R2021a. If you are using Polyspace with an HPC cluster (and possibly submitting batch jobs), then you will need to open the ports used with MATLAB Parallel Server. See the link below to discover which ports you need opened.
How do I configure MATLAB Parallel Server using the MATLAB Job Scheduler to work within a firewall?
https://www.mathworks.com/matlabcentral/answers/94254
Otherwise, see item D for the complete ranges.
A. Changing the port number the Polyspace Server/Cluster and Client/Desktop communicate with, using Polyspace Metrics
  • 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".
  • 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:
  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"
  • 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:
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 uses 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:
  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 the port numbers the Network License Manager uses
All MathWorks products communicate with the same ports with the Network License Manager. Please look at the article below for more information.
What ports does the Network License Manager use, and how can I set those ports?https://www.mathworks.com/matlabcentral/answers/96756
D. Summary of default ports used since R2019a
Open ports like below if you use one cluster (one MJS  and one worker).
Polyspace Access
  • 9443 — Polyspace Access default port.
  • 3268 — Lightweight Directory Access Protocol (LDAP) server default port. This port is not required if you do not use your company LDAP.
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
Ports used by Polyspace Metrics (removed in R2021b):
  • Polyspace service (polyspaced) : TCP 12427
  • Polyspace UI communication with Web Metrics : TCP 12428
  • Tomcat Web Metrics : TCP 8080, TCP 8009, TCP 8005. TCP 8443 is optional, if you want to use HTTPS.

More Answers (0)

Tags

No tags entered yet.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!