Setting the Port Number

When starting an agent as an application or an applet, you must specify the port used for communication with the JavaTest harness. You can use the following options on the command line, or if you are starting a GUI agent, you can also set this option from the GUI.

Application Options

-activePort port-number Include -activePort and the port-number in the command string to set the port that an active agent uses.

The port-number used for the active agent must be the port number the JavaTest harness uses when listening for active agents. The default port number is 1907.

-passivePort port-number Include -passivePort and the port-number in the command string to set the port used by a passive agent.

The port-number used for the passive agent must be the port number the JavaTest harness uses when sending requests to passive agents. The default port number is 1908.

Applet Options

activePort To set the port that an active agent uses for communication with the JavaTest harness, include the activePort parameter in the applet:

<param name=activePort value=port-number>

The port-number used for the active agent must be the port number the JavaTest harness uses when listening for active agents. The default port number is 1907.

passivePort To set the port that a passive agent uses for communication with the JavaTest harness, include the passivePort parameter in the applet:

<param name=passivePort value=port-number>

The port-number used for the passive agent must be the port number the JavaTest harness uses when sending requests to passive agents. The default port number is 1908.