Your Nextcloud server address is the URL stored in your server’s config.php file, typically under overwrite.cli.url or overwritehost, such as https://cloud.example.com.
What Is My Nextcloud Server Address?
Your Nextcloud server address is defined in the config.php file, usually located at /var/www/nextcloud/config/config.php.
That file holds the magic URL under the overwrite.cli.url key—something like 'overwrite.cli.url' => 'https://cloud.example.com'. Want to check without digging through files? Fire up your server terminal and run sudo -u www-data php /var/www/nextcloud/occ config:list. Just remember: whatever URL you find there better match your current domain or IP, or things will break when clients try to connect.
What’s Happening
Your Nextcloud server address becomes outdated when network changes occur, such as a router swap, ISP change, or domain move.
Here’s the thing: Nextcloud hardcodes that address for every single connection. Swap routers or move domains? Suddenly mobile apps and browsers can’t reach the server anymore. You’ll see errors like “server not found” or timeouts. The kicker? Nextcloud won’t update this automatically. So when connections fail, the first place to look is that stored URL.
How do I find my Nextcloud server address?
Use the Nextcloud CLI command occ config:list to print your current server URL from the /var/www/nextcloud directory.
SSH into your server, then run sudo -u www-data php /var/www/nextcloud/occ config:list. Scan for lines like overwritehost => 'cloud.example.com' or overwrite.cli.url => 'https://cloud.example.com'. Those are your active connection points. Prefer raw file access? Just peek at config.php itself with sudo cat /var/www/nextcloud/config/config.php. Either way, you’ll spot the URL in seconds.
Why isn’t my Nextcloud server address updating?
Old server addresses persist in client caches, delaying updates up to 48 hours after a change.
Mobile apps, desktop clients, and browsers love caching URLs to speed up logins. Change the server address? Those cached values may keep sending users to the wrong place for days. DNS propagation delays don’t help either. Force an update by clearing the app cache or reinstalling the client. DNS issues? Flush the cache or drop the TTL beforehand to cut downtime.
Step-by-Step Solution
- Connect to your Nextcloud server via SSH using an admin account:
ssh admin@192.168.1.100
- Jump straight to the Nextcloud config folder:
cd /var/www/nextcloud/config
- Double-check the current settings with the Nextcloud CLI:
sudo -u www-data php /var/www/nextcloud/occ config:list
Look for overwritehost and overwrite.cli.url to confirm the active server address.
- Open
config.php in nano (or your favorite editor):
sudo nano config.php
Update the relevant lines, for example:
'overwritehost' => 'new.cloud.example.com',
'overwriteprotocol' => 'https',
'overwrite.cli.url' => 'https://new.cloud.example.com',
- Save the file (Ctrl+O, Enter, Ctrl+X in nano).
- Restart your web server to make the changes stick:
If This Didn’t Work
- Still stuck with DNS issues? Clear your device’s DNS cache:
- Certificate warnings popping up? Toss the new certificate into your OS trust store or update it in your reverse proxy (Nginx, Traefik—whatever you’re running).
- Mobile app still throwing tantrums? Delete and reinstall it, or wipe its cache in your device’s app settings.
Prevention Tips
Running a dynamic IP? Set up a dynamic DNS service like No-IP so your address stays reachable without constant manual tweaks.
Edited and fact-checked by the FixAnswer editorial team.