Configuring the WSO2 EMM Ports for iOS
Follow the steps given below to configure the ports in WSO2 EMM to enable the iOS agent to communicate with the EMM server.
Open theÂ
config.json
 file that is in theÂ<EMM_HOME>/repository/deployment/server/jaggeryapps/emm-web-agent/app/conf
 directory.
Configure theÂhost
 attribute that is underÂgeneralConfig
 by providing the entire server address.ÂYou are required to configure this file as it is used to handle device enrollments.
"generalConfig" : { "host" : "http://10.10.10.182:9763", "companyName" : "WSO2 Enterprise Mobility Manager", "browserTitle" : "WSO2 EMM", "copyrightText" : "\u00A9 %date-year%, WSO2 Inc. (http://www.wso2.org) All Rights Reserved." }
Open theÂ
config.json
 file that is in theÂ<EMM_HOME>/repository/deployment/server/jaggeryapps/emm/app/conf
 directory.
Configure theÂhost
 attribute that is underÂgeneralConfig
 by providing the entire server address.You are required to configure this file as it is used to manage the devices.
In a clustered environment, configure the host attribute by providing the entire server address (by changing only the protocol to HTTPS and the port to the HTTPS port) that was given for the host attribute in the emm-web-agent'sÂ
config.json
 file. This is required because the EMM configurations refer to the emm-web-agent app as it is used to handle device enrollments."generalConfig" : { "host" : "10.10.10.182:9443", "companyName" : "WSO2 Carbon Device Manager", "browserTitle" : "WSO2 Device Manager", "copyrightPrefix" : "\u00A9 %date-year%, ", "copyrightOwner" : "WSO2 Inc.", "copyrightOwnersSite" : "http://www.wso2.org", "copyrightSuffix" : " All Rights Reserved." }
- Configure the following fields that are under theÂ
<APIKeyValidator>
 tag in theÂ<EMM_HOME>/repository/conf/api-manager.xml
 file to enable communication with the WSO2 API Manager.Configure theÂ
<serverURL>
 field by replacingÂ${carbon.local.ip}
 with the hostname or public IP of the production environment.
Example:<ServerURL>https://45.67.89.100:${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:<RevokeAPIURL>https://45.67.89.100:${https.nio.port}/revoke</RevokeAPIURL>