Configuring the WSO2 EMM Ports for iOS
If you are in a production environment, make sure to have the following ports open:
- 5223 - TCP port used by devices to communicate to APNs servers
- 2195 - TCP port used to send notifications to APNs
- 2196 - TCP port used by the APNs feedback service
- 443 - TCP port used as a fallback on Wi-Fi, only when devices are unable to communicate to APNs on port 5223
The APNs servers use load balancing. The devices will not always connect to the same public IP address for notifications. The entire 17.0.0.0/8 address block is assigned to Apple, so it is best to allow this range in the firewall settings. - 10397 - Thrift client and server ports
- 8280, 8243 - NIO/PT transport ports
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 thehost
attribute that is undergeneralConfig
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 thehost
attribute that is undergeneralConfig
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://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:<RevokeAPIURL>https://10.10.10.182:${https.nio.port}/revoke</RevokeAPIURL>
- Restart the WSO2 EMM server.