Page History
Tip |
---|
If you are in a production environment, make sure to have the following ports open:
|
Follow the steps given below to configure the ports in WSO2 IoTS to enable the iOS agent to communicate with the IoT server.
Configure the following fields that are in the
<IoT_HOME>/core/repository/conf/api-manager.xml
file to enable communication with the WSO2 API Manager.Configure the
<serverURL>
field that is under the<APIKeyValidator>
tag by replacing${carbon.local.ip}
with the hostname or public IP of the production environment.
Example:Code Block <ServerURL>https://10.10.10.182:${mgt.transport.https.port}${carbon.context}/services/</ServerURL>
Configure the
<RevokeAPIURL>
field by replacing${carbon.local.ip}
with the hostname or public IP of the production environment.
Example:Code Block <RevokeAPIURL>https://10.10.10.182:${https.nio.port}/revoke</RevokeAPIURL>
If you started the WSO2 IoT Server's core profile previously, the APIs published will connect to localhost. Therefore, you need to configure the
<EnabledUpdateApi>
property as true in the<IoT_HOME>/core/repository/conf/etc/webapp-publisher-config.xml
file to update the APIs with the Server IP.Code Block <!-- If it is true, the APIs of this instance will be updated when the webapps are redeployed --> <EnabledUpdateApi>true</EnabledUpdateApi>
Configure WSO2 IoT Server with the IP:
Excerpt Include Configuring WSO2 IoT Server with the IP or Hostname Configuring WSO2 IoT Server with the IP or Hostname nopanel true