Hello
I am having this error. Here is my situation as it is a little different than the others here.
I had my server hooked up to one isp lets call that ip OLD 142.
then i changed ISPs to NEW 188.
Now I get this message " Access through untrusted domain"
when trying to log in using my LOCAL IP address.
I have NO access to the ROOT as since the install for some reason this software has ALWAYS no matter when or where i have installed it has changed the username or password I had setup previously when i insatlled the Ubuntu on the server.
Is there a workaround to get into this using the local IP address AFTER my ISP has changed. There are VERY important files on this server that i need to access. Someone please help me I have to get to these files. Thank you all in advance.
You either need access to your config.php
file (e.g. via SFTP or something) or CLI access to execute occ
commands (although if you have CLI access you can also directly change the config.php
file…)
1 Like
The mistake is that you are trying to access it this way at all. Why? Can you tell us how else you access it? Incidentally, it’s an illusion that you have any advantages by using the local IP address.
If you use Nextcloud 28 or lower you can use the app OCC Web. However, I strongly advise against trying to customise Trusted domains.
It’s a bit OT, but can you elaborate on this, or point me to something I can read up on?
From the documentation:
All URLs used to access your Nextcloud server must be whitelisted in your config.php
file, under the trusted_domains
setting. Users are allowed to log into Nextcloud only when they point their browsers to a URL that is listed in the trusted_domains
setting.
So what am I missing here?
Thanks!
You must only whiltelist domains you use in your e…g. browser for access the Nextcloud e.g. cloud.server.tld
for https://cloud.server.tld
or 1.2.3.4
for https://1.2.3.4
.
Do you really need “log in using my LOCAL IP address”? Why? Trusted Domains is not a address, it is a server address or e.g. reverse proxy.
2 Likes
I still can not access this. I have access to the terminal but… That sadly has changed it’s default password that I set when i setup the server. Every single time i have ever set up this software it has changed the “Logon” password for the terminal. Every, Single time. So no surprise here that I am unable to log on with the password that I initially set there either to be able to change anything on the server. Now some of you will say “Thats not possible” I assure you that it is 100% and I tested it with setting up ANOTHER server using the included Ubuntu server install ISO that came right from Ubuntu and it changes that log on password every last time. Does anyone know what it changes that to? Maybe we can get in if we know that.
This and the terminal are the ONLY ways i have to get to this server.
I have the user id for the acct in this but no way to enter it to log on. 
I am sorry. At this point I have all but given up on this software. I just installed it AGAIN on a separate VM and it does the same thing. As soon as it is installed it either removes the existing user log on or changes its password completely so you can not SSH or get into it via the terminal. This issue needs to be corrected. Still need access to this server if anyone can help.
“not ssh or terminal” seems no Nextcloud problem. Nextcloud uses Web or WebDAV.