- iRidi Studio 2019
- Local and remote control, Cloud Gate
Local and remote control, Cloud Gate
Ways to connect drivers to equipment: over the local network, using an Internet address, or through the Cloud Gate cloud gateway for a remote connection between i3 pro and iRidi Server
Equipment, a service, iRidi Server, or any other resource with which i3 pro must interact can be on the same IP network segment (local) or on different segments requiring an Internet connection (remote).
For example, a smartphone running i3 pro can connect to the automation system locally while on the home Wi-Fi network and remotely when using mobile Internet.
A local connection is simpler and safer, but is insufficient if remote automation control is required. The following are the IP-network connection options and their advantages and disadvantages:
Connecting to a local IP address
This is the "default" way to communicate with equipment. When you are on the same local network as the automation installation, specifying the device's local IP address and port (for example, 192.168.0.100, port 80) in the settings is sufficient to connect.
Advantages:
- works immediately without IP network configuration
- prevents (not completely) malicious access to the automation installation over the Internet
Disadvantages:
- no remote control of the installation
How to configure:
- find the IP address of the controlled equipment to which i3 pro or iRidi Server will connect, and enter it in Host in the driver settings. Assigning static IP addresses to equipment is strongly recommended
- find the port used to connect to and control the equipment in its documentation (or the driver documentation), and enter it in Port in the driver settings
- specify the other connection parameters according to the driver documentation
Example 1: i3 pro connects to iRidi Server running on a PC at 192.168.0.100. It uses "Direct Connection" mode; the alternative is Cloud Gate, described below

Example 2: iRidi Server connects to a KNX IP interface assigned the static IP address 192.168.0.220

Connecting to an external IP address or domain
Devices accessible over the Internet have Internet IP addresses, known as external addresses. These can be static (permanent) or dynamic (changing over time).
A permanent Internet IP address is a service your provider may or may NOT offer. If it does not, connecting by IP address is not suitable. However, dynamic DNS can assign a permanent domain name to a device with a dynamic IP address. i3 pro or iRidi Server then obtains the device's IP address using its domain name and connects to it. Many paid or freemium services offer subdomain rental for DDNS.
Advantages:
- provides access to the automation system over the Internet
- well suited to connecting to a website rather than a physical device, when the connection is protected by SSL or another method of user identification and traffic protection (in this case, the disadvantages below do not apply)
Disadvantages:
- it is unsafe! If equipment has no protection against unauthorized access (as with KNX, HDL, Modbus, and many other systems), the risk of unauthorized access to it cannot be eliminated. If equipment does support protection, remember that security relies only on its own mechanisms, which may not have been updated for many years
- the router at the automation installation must be configured:
- allow external connections to the automation device (forward its port or ports on the router to make it accessible from external networks)
- configure a static (permanent) Internet IP address for the router if the provider offers this service (yes, this also requires an agreement with the provider)
- DDNS must be configured if the provider does not offer static IP addresses and you want to use a domain
- configure VPN rather than DDNS if you want an Internet connection protected not only by the equipment's own mechanisms but also by VPN mechanisms
Warning:
we do not recommend "exposing" equipment to the Internet. If you cannot use iRidi Server with secure Gloud Gate, use VPN.
How to configure:
- find the static Internet IP address or domain name of the controlled equipment, and enter it in Host in the driver settings. If the device/service has a domain name, enter it in Host (without http://)
- find the port on which your router accepts external connections to this equipment (it may differ from the local control port), and enter it in Port in the driver settings. For a website address, specify port 80
- specify the other connection parameters according to the driver documentation
Example: i3 pro connects to a subdomain of thingspeak.com to send GET requests

Remote connection through Cloud Gate
If you use iRidi Server, Cloud Gate provides a secure i3 pro connection to the automation system with minimal configuration.
Cloud Gate connects i3 pro to iRidi Server over the Internet and protects data.
Advantages:
- provides access to the automation installation over the Internet
- identifies the user and encrypts traffic
- can automatically switch between local and Internet connections
- free within the current iRidi license
- easy to configure, requiring no network administration knowledge
Disadvantages:
- does not work without iRidi Server at the automation installation. The server acts as a gateway between i3 pro and the automation devices that need to be controlled over the Internet
How to configure:
IP cameras over the Internet
Viewing IP camera video is a significant issue because each IP camera is effectively an automation device subject to all the disadvantages described for equipment "exposed" to the Internet. At the same time, Cloud Gate does not apply to cameras because i3 pro receives their video directly, bypassing iRidi Server.
Options:
- use a service that provides online access to live video. For Ivideon , there is a corresponding lite module that lets you embed the service's video stream in the i3 pro interface. With other services, video cannot be embedded in the interface but can be opened in a browser
- hope that your IP camera's access protection (login and password) is reliable enough not to be bypassed by an attacker. Expose the cameras to the Internet using DDNS or a static address
- use VPN as the only way to connect remotely to the entire automation installation
- do not view IP camera video over the Internet :)