If youâre using the built-in CODE server (richdocumentscode), you donât need to configure anything manuallyâjust make sure the âUse built-in CODE serverâ option is enabled.
If it still doesnât work, itâs likely because the client doesnât trust the self-signed certificate, or it might still be trying to connect via the URL you previously used. In that case, try switching to âUse your own serverâ and then back to âUse built-in serverââthat can sometimes reset things.
That said, this setup isnât exactly ideal. Even though it can work in theory, to avoid issues like this, you should always access your Nextcloud via its domain name, donât switch between using the IP address and the domain.
Check out 101: Split-Brain DNS (split-horizon) to learn how you can configure your local network to always access Nextcloud via domain name, even from within your LAN.