We need more information from the API to support private network correctly. We should add a new field Network (private, public or both). So when creating content related to an instance we can use the right IP instead of guessing it.
Affected features :
Location creation: we guest the IP for creating default users & context on the engine
Location account login : we guest the IP to connect on the engine after the login
I will add the preferred_connection_typefield on the instances the values for this field will be public, private, or both.
During the upgrade all existing instances will have public selected.
I will also check see if the remote_hostname can be optional in the case of an instance that will only be used privately.