You can change the default ports for DTP applications to meet your infrastructure requirements. You should only follow these instructions if the default ports are unavailable.
For UNIX, root permission is necessary in order to start the DTP Server on port 80, which is why the default port on Unix is set to 8080.
In this section:
Configuring the Web Server Port
The default port for DTP Server is port 80 for Windows and 8080 for Linux, but you can change the port by editing the server.xml file.
- Stop DTP Server services (see Stopping DTP Services).
- Open the <DTP_INSTALL>/tomcat/conf/server.xml file.
Locate the following element and change the value of the port property:
<Service name="PST"> <Connector port="80"
Restart DTP services.
Configuring the Data Collector Port
DTP can receive data from any software product that supports the data format used by DTP. Data from testing tools is sent to Data Collector, which listens on port 8082 by default. You can change the default port by editing the DCServerConfig.xml file:
- Open the <DTP_DATA_DIR>/conf/DCServerConfig.xml file
Locate the following element and change the value:
<dc-server-port>8082</dc-server-port>
- Save the file.
- Restart Data Collector.
Configuring the JMS Events Broker Port
The JMS events broker provides real-time information about events that occur in DTP. The default port is 61617, but you can change it by editing the EventsConfig.xml file:
- Open the <DTP_DATA_DIR>/conf/EventsConfig.xml file.
Locate the following element and change the value of the port property:
<transport-connector port="61617" />
- Save the file.
- Restart DTP services.
See Subscribing To DTP Events, for more information about using the JMS events broker, including topics currently available for subscription.
Configuring Session Database Server Port
The HyperSQL database server is responsible for session management data. The server uses port 9003 by default, but you can configure DTP to use a different port number by editing the <session-database-port>
element in the PSTRootConfig.xml configuration file. The configuration file is in the <DTP_DATA_DIR>/conf/ directory.
- Stop DTP Server services (see Stopping DTP Services).
- Open the PSTRootConfig.xml configuration file in an editor and uncomment the <
session-database-port>
element. - Specify a different value for the port number and save the file.
- Start DTP services.
Configuring License Server Port
You can change the License Server port in the License Server administration UI. See Configuring License Server for details.
Disabling 9.x Access to License Server Port
License Server communicates with 9.x versions of Parasoft code analysis and test execution tools over port 2002. If you are not using Licenser Server or are only using License Server with 10.x versions of Parasoft tools, you can disable port 2002 as a security best practice within your DTP infrastructure. The following instructions describe how to disable port 2002. The port used by 10.x tools, port 8080, will still remain open.
- Stop DTP Server services (see Stopping DTP Services).
- Open the ls.conf file located in the <DTP_DATA_DIR>/LicenseServer/conf directory.
Add an
<enbabled>false</enabled>
element to the<Server>
element:<?xml version="1.0" encoding="UTF-8"?> <Root> <Server> <enabled>false</enabled> <port>2002</port> <concurrent_connections_limit>100</concurrent_connections_limit> <soap_administration_enabled>true</soap_administration_enabled> <start_deactivated>true</start_deactivated> </Server> ... </Root>
- Save the file and restart DTP services.