We have several android devices on which we want to sync with one designated android device over wifi without using the syncgateway. We read about the P2P capabilities of couchbase lite for android, especially the feature "Off-the-grid peer-to-peer replication support via REST APIs" caught our eye. Unfortunately we couldn't find any documentation concerning this topic.
So I'm one of those developers and we currently run our code in the configuration discussed below for our demo. We have a single 'hub' device that all the other devices 'spoke' off of. You can see more gory details here.
Note that we do intend to switch from hub and spoke to a mesh configuration. But the code we are using (PPNET) is currently designed for hub and spoke.
For now 'discovery' consists of typing in IP addresses. But we are in the middle of bringing up our new infrastructure which allows users to share identities (which in our case are public keys) via QR Codes. We are also adding in Tor hidden service support
so devices can be discovered anywhere and reached behind firewalls and NATs. We will also eventually put in support for dynamic local discovery (e.g. mDNS/bonjour and/or UPnP/SSDP) but that's really intended for ad-hoc networking scenarios.
Everything we are doing is completely open source so we are happy to share. We are an experiment to see what it would take to build a platform to enable peer to peer apps. You can learn more at https://thali.codeplex.com.
As I mentioned in a separate email we do hope to get many of the changes we had to make to Couchbase to get it work well in a P2P environment moved back into the main Couchbase code base. This is something we are talking to the Couchbase team about.
Thanks,
Yaron