Does anyone have experience with nextcloud on android? I can connect to it in my browser, but my locally hosted nextcloud instance is not seen by the android sync client from within the app. I copy and paste the baseurl directly fr the browser and the app says it can't find the host.

I don't like creating accounts so I figure I would #asknostr insteas

Reply to this note

Please Login to reply.

Discussion

I am experiencing this issue with both my android devices. One is grapheneOS and the other is lineage. I installed the app in a virtual device on Android studio and I don't have this problem.

I also self-host nextcloud with a proper url and use the android client on graphene.

For some reason I never nailed down, the app was particularly picky to my hairpin routing. Ij that I could access it from outside the LAN, but not inside the LAN.

I fiddled with a bunch of stuff on the server, the router and phone ans then it just started working and has for years,

The other issue I had, was the NC app being picky with self signed SSL certs. I have had zero issues with that since I started using Traefik and LetEnceypt.

There is ligh at the end of the tunnel, I've had my setup stable for years.

I would think DNS was the problem as well except that I can browse the host in vanadium. It is as if the nextcloud client app no longer uses the DNS settings of the OS.

I tried two other hosts, one that exists and one that does not. I got two new errors:

I tried another host on the network and got a different error: "server not found" I have all of my self hosted services going through traefik reverse proxy. And this process works fine in an android VM.

Must be a dns thing or routing thing. Describe more where is the server located relative to your phone, how is the network setup...etc

I am connecting to a Linksys Smart WiFi router with DNS setup to use my private PiHole instance. DNS works in all other apps except the Nextcloud client and other users have had problems with IPv6 bring enabled on the router. I've disabled it on both my mesh router and my modem / router but that doesn't seem to have fixed it. I don't understand how I can have an IPv6 IP address when it is disabled at the router.

do you have WebviewJIT disabled? try fiddling with those Graphene exploit protection settings...?

Just checked and this is enabled

Alright, so I'm pretty sure it IS a DNS issue. Specifically a IPv6 DNS issue.I disabled IPv6 on my router and restarted my phone but my phone still has an IPv6 IP address and the issue with the app exists.

https://help.nextcloud.com/t/android-app-could-not-find-host-via-url/137387?_escaped_fragment_=

I don't get why you would make an android app that relies on DNS but doesn't rollback to IPv4. It seems like if you let the OS do what it wants then it would just work. At least that's how all other apps seem to work for me. This is the only problem app.