You can change the default ports for DTP applications to meet your infrastructure requirements. You should only do this 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 server.xml file located in the
<DTP_INSTALL>/tomcat/conf/
directory. 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 DCServerConfig.xml file located in the
<DTP_DATA_DIR>/conf/
directory. 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 EventsConfig.xml file located in the
<DTP_DATA_DIR>/conf/
directory. 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.
- Stop DTP Server services (see Stopping DTP Services).
- Open the PSTRootConfig.xml file located in the
<DTP_DATA_DIR>/conf/
directory. - Uncomment the <
session-database-port>
element and specify a different port number. - Save the file.
- Start DTP services.
Disabling Port 2002 on License Server
Insure++ communicates with License Server over port 2002. All other Parasoft tools communicate with License Server over the standard HTTP/HTTPS ports. If you are not using License Server or are only using License Server with other 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.
- Stop DTP Server services (see Stopping DTP Services).
- Open the ls.conf file located in the
<DTP_DATA_DIR>
/
LicenseServer/conf
directory. Add an
<enabled>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> <start_deactivated>true</start_deactivated> </Server> ... </Root>
- Save the file and restart DTP services.
Changing Port 8005 on DTP
Port 8005 is the default Tomcat shutdown port, but you can run into a port conflict on some Windows servers. To resolve this:
- Stop DTP services.
- Open the server.xml file found in
<DTP_INSTALL_DIR>/tomcat/conf/
. - Find the element
<Server port="8005" shutdown="SHUTDOWN">
and change the port value to a port that is not being used (for example, 8006). - Save the file and restart DTP services.