Network Environment
Kii Cloud and clients communicate over a network. The client SDK uses the HTTPS protocol to access the Kii Cloud REST API. To support the push notification feature, devices, things, and servers for the push notification services communicate over the network. Web apps and things use the MQTT protocol over the TCP socket or WebSocket to use push notification and the API.
You particularly do not need to care about the TCP port if devices are on the public network. If the devices are on a private network such as a corporate intranet, make sure that the following TCP ports are open:
Mobile Apps
The following ports are used for mobile communication:
- Accessing the Kii Cloud API
- HTTPS: Outbound port 443
- Push notification
- FCM (Android): Outbound port 5228, 5229, 5230. More information.
- APNs (iOS): Outbound port 5223, 2195, 2196, 443. More information
- MQTT (JavaScript): Outbound port 12473 (over WebSocket with SSL/TSL)
The client SDKs are designed to use HTTPS for API call and respective ports for the push notification service in use.
IoT
See the sections below for the ports used by the mobile side and the thing side.
Mobile Side
See Mobile Apps for the ports used by the mobile side.
Thing Side
Select one from the two communication methods below for communication between Kii Cloud and things.
HTTPS for API Call and MQTT for Push Notification
This method uses HTTPS for sending requests to Kii Cloud as with mobile apps, and MQTTT over the TCP socket with SSL/TSL for push notification. Any SDK for things uses this method. See For IoT Application Development for available SDKs for things.
The following ports are used:
- Accessing the Kii Cloud API
- HTTPS: Outbound port 443
- Push notification
- MQTT: Outbound port 8883 (over the TCP socket with SSL/TSL)
MQTT for Both API Call and Push Notification
This method uses only MQTT in implementing the thing. You do not need to prepare for HTTPS. However, you need to call APIs directly because no SDK supports this method. See Using API via MQTT to learn how to implement the communication function only with MQTT.
The following port is used:
- MQTT: Outbound port 8883 (over the TCP socket with SSL/TSL)