Here are the steps to offset ports. Let's assume you want to increase all ports by 1.
- Set Offset value to 1 in <IoTS_HOME>/repository/conf/carbon.xml
- Change the hostURL under <authenticator class="org.wso2.carbon.andes.authentication.andes.OAuth2BasedMQTTAuthenticator"> in <IoTS_HOME>/repository/conf/broker.xml according to the port offset.
- Start the Server.
<Offset>1</Offset>
<authenticator class = "org.wso2.carbon.andes.authentication.andes.OAuth2BasedMQTTAuthenticator"> <property name = "hostURL">https://<IoTS_HOST>:<IoTS_PORT>/services/OAuth2TokenValidationService</property> <property name = "username">admin</property> <property name = "password">admin</property> <property name = "maxConnectionsPerHost">10</property> <property name = "maxTotalConnections">150</property> </authenticator>
No comments:
Post a Comment