Getting the Port Information
The BrokerServerClient.getActivePort method allows you to obtain the base port for the Broker Server to which your BrokerServerClient is connected. The base port is used for non-SSL connections and has a default value of 6849. The base port number is also used to calculate the port numbers as shown in the following table.
Port number | Description |
Base port number minus 1 | Used for SSL connections without client authentication. |
Base port number minus 2 | Used for SSL connections with client authentication. |