Agent Ports
Agent runtime ports are set in rwagent.xml as a property of the connectors. For example, the line in bold below
 
<rwsf:connector name="HTTP/1.1"
...
<rwsf:property name="port" value="8090"/>
...
</rwsf:connector>
sets the port for the HTTP connector to 8090.
The HydraExpress Agent runtime uses the following default ports:
Table 3 – Agent default ports 
8090
Used for HTTP requests sent directly to the Agent.
8009
Used for AJP 1.3 requests sent to the Agent; usually sent from an external Web server such as Apache.
8443
Used for HTTPS requests sent directly to the Agent
8089
Used for sending shutdown requests to the HydraExpress runtime. Shutdown requests must be issued from the host on which the Agent is running.
Common Issues with Ports
If you are running other servers on the same machine as the Agent, such as Tomcat or Apache, be sure that each is assigned a different port. For example, the default Tomcat AJP 1.3 port is 8009, the same port as the default AJP-1.3 connector in HydraExpress. In this case, you would need to change either the port for Tomcat or the AJP-1.3 connector port.
Requests or listeners assigned to the same ports on the same server will result in a fatal startup error Unexpected exception: SocketException: in Socket::bind: ADDRINUSE.