Tried so many tutorials, still issues accessing NC outside home network on my android phone! Help please!

I plead your help dear community.

I have followed several tutorials and have set up Nextcloud LXC in Proxmox plus done following:

  • Created a DuckDNS subdomain (nc.duckdns.org)
  • Installed Nginx Proxy Manager (NPM) LXC in Proxmox and created a DuckDNS wildcard SSL for nc.duckdns.org
  • Created in NPM a proxy host with domain name nc.duckdns.org, pointing to the IP of my NC LXC, forward port 443, chose https scheme and chose the SSL created earlier for nc.duckdns.org
  • in DuckDNS, pointed nc.duckdns.org to the IP address to my NPM IP
  • modified NC config.php according to below:

‘trusted_domains’ =>
array (
0 => ‘nc.duckdns.org’,
1 => ‘ip.of.my.nc’,
2 => ‘ip.of.my.npm’,
),
‘trusted_proxies’ => [‘ip.of.my.npm’],
‘overwriteprotocol’ => ‘https’,
‘overwritehost’ => ‘nc.duckdns.org’,
‘overwritecondaddr’ => ‘^ip.of.my.nc$’,
‘datadirectory’ => ‘/var/www/nextcloud-data’,
‘dbtype’ => ‘mysql’,

I can access my NC using my duckdns domain, and it is SSL certified (https) through lets encrypt.

I have the nextcloud app on my samsung phone, and it can access my NC using using the duckdns domain but whenever I am outside my home network, I can get in to my NC but I cannot open any files and it is an everlooping loading icon on the screen.

I need to be able to view the photos and videos easily on my NC on my phone outside of home network. Looking at my steps above, did I do any mistake or forget something? Let me know if you want to view the full config.php for more reference.

I have been stuck 6 months now! Any help is appreciated!

this two are useless if you want TLS which you should always prefer:

and this one is usually not required:

I would continue troubleshooting using desktop browser outside of your network as it allow much easier troubleshooting. looking at the browser dev tools and checking the connections one by one you likely spot the problem quickly when you access the system.

Does nc.duckdns.org resolve to the same IP address internally as externally?

If the same IP, confirm you can use the Nextcloud web UI from your phone’s browser like @wwe suggested.

That’ll suggest where to go next for troubleshooting.