Under review

How can I configure the server for a project?

Luana 4 months ago in Other • updated by Aleksandr Romanov (CTO) 4 months ago 20

I have succesfully made a project and my client liked it very much, but now he want's to have acess to his project from anywhere. 

How do I configure a server to his project so he can acess the commands from external connections? 

Under review


what is our product you use? i3pro or i3lite?


I have got to connect the device remottely, but now I need to create a method to acess it remotelly only when the phone is not in the internal wi-fi. I am trying to do this with strings but one of the devices - the one that has a login and password -  is not responding acordingly... Where am I failing? 


Can you attach your project and instruction what device does not works 


I am having trouble to atach the project here, but basically I tried to create a string with the function below. The device named "7Port" works correctly, but the 'Fibaro' device doesn't work... This device have a login and password as the other does not. I'm not getting to connect it on external connections, only internal.

function External()

var driver4 = IR.GetDevice("Fibaro");
driver4.Disconnect(); // disconnect from  equipment 
driver4.SetParameters({Host: "MyExternalIp", Port: "xxxx"}); // change the connection settings 
driver4.Connect(); // connect to equipment      

var driver3 = IR.GetDevice("7Port");
driver3.Disconnect(); // disconnect from  equipment 
driver3.SetParameters({Host: "MyExternalIP", Port: "xxxx"}); // change the connection settings 
driver3.Connect(); // connect to equipment


Can you upoad your project in any cloud, share it and write link to it here?

Вообще не вижу этой функции в скриптах. Напишите в каком скриптовом файле находится эта функция и если он запаролен, то нужен пароль

I'm sorry, I uploaded the wrong project. Please access the Drive folder again.


If you want to connect to the Fibaro device only inside local network, then in local access settings you need to specify the local username and password (default admin/admin, correct if changed). In properties of the driver in the project and in the script Fibaro_login must be this data. Ensure that you specify the local username and password, not the website https://home.fibaro.com/cmh/login

Ok, but how do I proceed to connect to the Fibaro device outside the local network?


To Fibaro, you can connect locally (through a home router) or remotely (through the service Fibaro).

To work through the service Fibaro:
1) You need a registered account on the website https://home.fibaro.com/cmh/login
2) Set your device Fibaro remote access.
Read more, see the documentation for Fibaro.

You can connect remotely to your device, bypassing the server Fibaro (using a local username and password)

1) Port Forwarding in home router (not secure). Read more here: http://dev.iridiummobile.net/Port_Forwarding/en
2) VPN (more secure). About VPN in i3 pro can be found here: http://dev.iridiummobile.net/VPNConnection/en

Alright, everything that you told me until now I already knew. I followed this orientations and the fibaro driver doesn'n work with the use of scripts. 

What I wanna know is why when I try to make a script for the user chose, on the project, what is his type of connection (if it is internal or external), the Fibaro driver doesn't work, but the global cache driver works correctly. 

I wanna know what is the difference between this two drivers, because the fibaro driver only works if I do a project only dedicated to external acess and another only dedicated to internal acess. 

I wanna make only one project that the user can chose what is his type of connection so the properties of the driver can be changed automatically. 

Because the driver Fibaro based on the AV & Custom Systems. The driver works with the controller via http. Global Cache is a another Driver Type.

Ok. But I've tried to use the model of script for AV & Custom Systems HTTP present in the API and it didn't work either...

Is there a different model of script to try with the Fibaro Driver?

If you want without switching to control the device Fibaro inside local network and outside the network, then create a VPN and connect from iridium directly to VPN. From VPN or configure a route to the device Fibaro or Forward port 80 from VPN to Fibaro device.

Here all that is for Fibaro: http://www.iridiummobile.net/download/software/v3/#tab2


Please specify: inside the LAN driver Fibaro in your project works or not?

It does work perfectly. And if I change the parameters of the drive like this:

-> external IP instead of internal IP

-> 1080 port instead of 80 port

The device works externally too. 

What I want to know is a model of script or another method that I can use so, in te same project, the client can acess the device both on local network and outside the network.


This link download the file sliding_Brainhouse_edit.irpz and check if it works now.

It worked! 

Some commands are not ok, for example the lights only turn on, but doesn't turn off... 

Hello, is your problem still unresolved?