Topics/Solution Guides

Configuring Custom ReplayDIRECTOR Ports

Jonathan Lindo December 01, 2011

First, please review the Architecture article at http://support.replaysolutions.com/entries/20717436-replay-architecture-and-firewall-ports.

By default, ReplayDIRECTOR components communicate over ports 80 and 10230. You can configure these ports based on your requirements as follows:

ReplayDIRECTOR Server (RDS)

There are two components on the RDS. The Web UI which is Tomcat, and the Replay Engine. Both of these are installed as Windows Services. 

ReplayDIRECTOR Server UI

  1. Edit the file 'server.xml' located under C:/Program Files/RDS/Tomcat/conf/server.xml, by default. Change the line:
       
    <Connector port="80" protocol="HTTP/1.1"
     
    to
       
    <Connector port="XXXX" protocol="HTTP/1.1"

    where 'XXXX' is your desired port, such as 8080.  
  2. Open Windows Services and restart ReplayDIRECTOR Server UI.
  3. Please make sure your firewall settings permit incoming TCP connections on the new port!

Replay Engine

  1. Edit the file 'ReplayDataServer.xml' located under C:/Program Files/RDS/Engine/ReplayDataServer.xml, by default. Change the text:
    <Config Port="10230" 

    to
    <Config Port="XXXX"

    where 'XXXX' is your desired port, such as 10231.
  2. Open Windows Services and restart ReplayDIRECTOR Server Engine.
  3. Please make sure your firewall settings permit incoming TCP connections on the new port!

ReplayDIRECTOR Recorder Agent

The recorder agent is configured to communicate with the RDS via the command 'replay rds_set', or using the Eclipse plugin. To change the port settings:

  1. Open a command prompt and run 'replay rds_set'. The ReplayDIRECTOR install directory will need to be in your path, and REPLAY_HOME (pointing to the Replay install directory) and JAVA_HOME must be set as well. 
  2. On Windows, and on Linux where a graphical UI is present, the following window will appear:

    RdsSet.JPG 
  3. Select the server and port pointing to the RDS Engine, click Login to verify success.

From the Command Line or Script:

If you do not have a graphical interface, or would like to configure RDS settings from the command line or via a script, you can use the following command:
  1. From the command line, run:
    replay rds_set  [<hostname> <port> <default 1 or 0> <username> <password> <Web URL>]

    For example,
    replay rds_set rds.mydomain.com 10231 1 myuser@mydomain.com mypassword http://rds.mydomain.com:8080 
ReplayDIRECTOR Eclipse Plugin

From Eclipse:
  1. From Eclipse, open Window -> Preferences -> ReplayDIRECTOR ->  ReplayDIRECTOR Server
  2. From here you can Add... or Edit... your RDS settings. A window identical to the screenshot above will open allowing you to change settings.

Further Assistance?

Should you need any further assistance please contact us at support@replaysolutions.com, or open a support ticket directly on this support site above. We will respond within 24 hours!