I have a Nextcloud instance installed on Ubuntu 24.04 via Snap. Everything works perfectly in browsers: https://ubuntulab.my.domain resolves correctly, SSL certificates are valid, and trusted domains are set up in Nextcloud. LAN DNS is also working fine.
Problem: The Nextcloud Android app seems unable to resolve the hostname ubuntulab.my.domain. Connecting via the IP 192.168.2.5 works technically, but the app still throws hostname and trusted domain errors.
My questions for the community:
Does the Android app possibly only accept top-level domains like .com, .net, .org, etc.?
Is there a clean workaround to allow the app to connect via IP while making Nextcloud treat requests as coming from ubuntulab.my.domain?
I want to avoid changing browsers, DNS, or SSL—just make the app work.
You should check, whether your domain can be reached by all/other devices inside your network. For me it looks, that the domain ubuntulab.my.domain is unknown in the DNS of your router.
In Google Play store there you will find the app “Ping Tools”. After installation you can do a ping and/or traceroute to your ubuntulab.my.domain
Can you reach your server, if WLAN is disabled and mobile data are enabled on your device (ping and Nextcloud app)?
Is “Private DNS” on “automatic” or “off”? In the “Internet” settings, and if you tap on the gear icon next to the SSID of your WiFi network, does it show the IP of your local DNS server under “DNS”?
If not, your phone might be using some public DNS server over HTTPS, instead of your local one.