
Hi everyone,
I'm running into an issue with my self-hosted Appwrite backend and I could use some help. I’ve successfully set up an Android app in my Flutter project, and everything works fine when debugging on a physical Android device connected to my computer (using email/password session to connect to the database).
However, when I build an APK and run the app on my phone without it being connected to Flutter, I get the following error:
ClientException with SocketException: Failed host lookup: 'subdomain.domain.com' (OS Error: No address associated with hostname, errno = 7), uri=https://subdomain.domain.com/v1/account/sessions/email
I’ve already made the necessary adjustments mentioned in the Appwrite package documentation on pub.dev, including adding the activity tag to the Android manifest along with my Project-ID. I initially encountered this issue on a server set up through elest.io, but now I've switched to my own server hosted on Hetzner and am still getting the exact same error.
Since everything works fine in debug mode, I feel like my DNS settings are correct. Does anyone have any ideas on what could be causing this issue in production or what steps I might be missing? Any help would be greatly appreciated!
Thanks in advance!

Set the internet android permission in androidmanifest

oh, that sounds to easy. thank. i will have a look
Recommended threads
- Function delayed execution does not exec...
Hi, I’m having issues with scheduled function executions. Sometimes the delayed function triggers, but a lot of the time it doesn’t. For example the status just...
- Deployment Error After Migrating from 1....
Hi Everyone, After recently migrating my self-hosted Appwrite instance from version 1.6.0 to 1.6.2, I’m encountering an issue while deploying a function. The d...
- Cannot use R2 for storage
I setup the environment variables including s3 endpoint to use R2 as my storage provider but I'm unable to upload any files. Got this from docker logs appwrite
