Changing IP Address

Nextcloud Version 12.0.3
Operating System FreeNAS-11.0-U4
Apache Version 2.4.27 (FreeBSD)
PHP Version 7.1.9

Hello All,

This was my first real project with FreeBSD and managed to get it working with the help of two guides.
(https://forums.freenas.org/index.php?threads/drkks-definitive-guide-to-installing-owncloud-in-freenas-or-freebsd.19605/)

(https://ramsdenj.com/2017/06/05/nextcloud-in-a-jail-on-freebsd.html)

The box has no WAN connection and will only be used locally. I set it up for a friend at a different location of where its going to be installed and now need to change the IP address. Currently the IP is 192.168.254.1 and I want to change it to 192.168.1.202. It is very simply to change the IP in FreeNAS.

I also added the new IP to ‘trusted domains’ in /usr/local/www/apache24/data/nextcloud/config/config.php

0 => '192.168.254.1',
1 => '192.168.1.202',

Should that be enough to get it working or do I need to change anything else? I would hate to get there and it not work,

Thank you in advanced!

Freddie

If you access your cloud through a local ip only, you probably have to change all clients as well. Using a domain would make it easier and you can easily change the ip whenever you need. For a local domain (mydomain.local) it’s probably good if you control the local dns resolver (often on your router) to give the right ip address.