Connection Settings
Use the BrokerClient.getDefaultBrokerPort method to obtain the default IP port number that will be used by the BrokerClient constructor and the BrokerClient.reconnect method when connecting to a Broker.
The default port number is used for non-SSL connections and has a value of 6849. The default port number is also used to calculate the port numbers shown in the table below.
Port numbers calculated from the default port number
Port number | Description |
default port number minus 1 | Used for SSL connections without client authentication. |
default port number minus 2 | Used for SSL connections with client authentication. |