-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Description
It should be easy-peasy for users + clients to discover an ownNextCloud service instance available to them (either on LAN/WLAN, or on Wide Area LAN) and then connect to it.
_Quotes from the future:_
"After installing Nextcloud, I just started my Android client, and BAMM!, it had already discovered the Nextcloud server and presented to me its login screen."
"After I started my Epiphany browser, a 'Nextcloud' bookmark within the 'Nearby Sites' category was already there. Clicking on it presented me its login screen."
For this to work, the server component should be able to announce its presence and its exact services to potential clients. (Clients also need a way to take notice of these announcements.)
Exactly for this purpose mDNS (Multicast-based DNS, described in RFC 6762) and DNS-SD (DNS-based Service Discovery, described in RFC 6763) have been specified by the IETF.
Given that most Linux distributions nowadays provide Avahi out of the box, getting this server part of the equation to work should be super-easy. Merely taking advantage of the already existing _webdav._tcp, _http._tcp and _https._tcp service types should already go a long way.
Utilizing the existing Apache module mod_dnssd (for more docu, see also here) should be a breeze. It may require an additional dependency to install: on Debian the package name is libapache2-mod-dnssd.
Finally, you may want to consider to register your own service types _nextcloud._tcp and _owncloud._tcp (possibly with sub-types for _contacts, _calendar, etc.) with IANA here: www.iana.org/cgi-bin/usr-port-number.pl.
See also _at the respective topic in the forums_, where further hints and some details have been discussed already.