Hello!
Is it possible to use Jami in local area network (LAN) withuot Internet?
If yes then what are the Jami config changes the LAN nodes need to do?
Thanks!
Sure.
Depending the client, there is more or less option available.
The thing is, Jami needs a bootstrap server to enter the network. So you can modify it in the settings to set your own bootstrap node. The other way is the option "Auto connect on local network" (available on Linux only for now) where the client will detect other clients on the network and auto bootstrap on it.
Other options exists, but the clients don't show it for now:
where the first option is the auto bootstrap option. Account discovery/publish is the options to detect other jami accounts on a network, but it's not shown in the client (on GNU/Linux, this options are in: ~/.local/share/jami/YOUR_ACCOUNT_ID/config.yml)
To summarize, 3 options:
Change the bootstrap to your own (on your local network) in the settings
Manually change the config in ~/.local/share/jami/
Is this enough? Since I have "Auto connect on local network" enabled (Account.peerDiscovery: true) on both the nodes, I don't need to set up the bootstrap server, right?
But still I am not able to send messages from these nodes to each other. Both the nodes show the 3 dots in wave-like motion beside the messages. (I think that means sending/in process)
I investigated this feature and almost everything works, here are the scenario of what I tried in a LAN without internet (behind a switch with ethernet and with a wifi router withouut internet):
ipv4 to ipv4 (works)
ipv4 to ipv6 (works)
ipv6 to ipv6 (works)
Make sure to enable these lines as discussed previously:
Moreover, make sure that your router, switch is not filtering mutlicasting, some routers disable it to avoid impacting the network from the search that all devices launch with the mutlicasting.
I'm joining a flow of two devices finding eachother with peer discovery.
What doesn't work is when there are multiple devices the messages are sent and received with a delay and the green (online) icon is not switching properly. It seems to happen on a host with multiple network card thus, it must be a connectivity change issue. Otherwise, all of the above works just fine.
@ovari we just confirmed the presence of this issue with @sblin in case of multiple accounts it seems a connectivity change triggers this issue, I will update you as soon as there is a hot fix to allow you to test it on your side. Thank you for the patience! :)
In fact @mzhang did some tests. The auto connect is working (if your network accepts broadcast).
The only issues is with calls where the DNS resolution can take time (17 seconds * 3 on my computer) for the TURN.
Quick solution: If you are in a LAN, deactivate TURN. Daemon solution, improve the ICE init and avoid to connect to TURN after the first ERESOLV error (until next connectivity change).