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. 

Any port changes also affect Team Server, so you should also change Team Server port settings accordingly.

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.

  1. Stop DTP Server services (see Stopping DTP Services).
  2. Open the <DTP_INSTALL>/tomcat/conf/server.xml file.
  3. Locate the following element and change the value of the port property: 

    <Service name="PST">
    <Connector port="80" 
  4. 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:

  1. Open the <DTP_DATA_DIR>/conf/DCServerConfig.xml file
  2. Locate the following element and change the value:

    <dc-server-port>8082</dc-server-port>
  3. Save the file.
  4. 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 configure it from administration page:

  1. Choose Report Center Settings from the settings menu (gear icon).
     
  2. Choose Event Broker from the sidebar menu and click Stop.
     
  3. Enter a new port number in the Port filed and click Save.
  4. Click Start.

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.

  1. Stop DTP Server services (see Stopping DTP Services).
  2. Open the PSTRootConfig.xml configuration file in an editor and uncomment the <session-database-port> element.
  3.  Specify a different value for the port number and save the file.
  4. 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 License 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.  

  1. Stop DTP Server services (see Stopping DTP Services).
  2. Open the ls.conf file located in the <DTP_DATA_DIR>/LicenseServer/conf directory.
  3. 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>
  4. Save the file and restart DTP services. 

Disabling the Team Server Port

Team Server is a component that enables centralized administration and the sharing of artifacts across teams that use 9.x versions of Parasoft code analysis and test execution tools (see Configuring Team Server for additional information).

If you are not using Team Server in your organization, you can disable the default Team Server port (18888) as a security best practice within your DTP infrastructure. The following instructions describe how to disable Team Server's default port.

  1. Stop DTP Server services (see Stopping DTP Services).
  2. Open the server.xml configuration file in the <DTP_INSTALL>/tomcat/conf directory.
  3. Comment out the <Service name="Internal">  element:

    <!-- <Service name="Internal">
    <Connector port="18888" maxThreads="150" minSpareThreads="25"
    maxSpareThreads="75" enableLookups="true" redirectPort="8443"
    acceptCount="10" debug="99" connectionTimeout="60000"
    disableUploadTimeout="true" />
    <Engine name="Internal" defaultHost="localhost"
    debug="99">
    <Host name="localhost" debug="99" appBase="internal"
    unpackWARs="true" autoDeploy="true"
    className="com.parasoft.pst.core.tomcat.AccessibleHost">
    <Context path="" docBase="root" debug="99" />
    <Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs" prefix="Internal_access_log" suffix=".txt" pattern="%h %l %u %t "%r" %s %b" />
    </Host>
    </Engine>
    </Service>
    -->
  4. Save the file and restart DTP services.
  • No labels