Change IP in Ubuntu Image

Hi,

i will change the ip after the Setup the Ubuntu VM from the Store.
The IP at the moment is 192.168.1.50, will change to 192.168.1.xx.
How i can do this?


Have change the IP in etc/network/interfaces and save + reboot, but then i can not connect to the cloud anymore.

Please help me fast.

thx


Ubuntu: 16.04.3
Netxcloud: 12.0.3

Have you checked firewall rules to ensure that they are forwarding to the correct IP?

sorry, how i do this.
i`m not a perfect linux men ;-)!

thx simon

Simon, I should have asked how you connected to the computer originally. Was it via a local IP address like 192.168.1.150 and through a web browser or were you using Putty or something else?

at the moment i will use 192.168.1.50 and all works.
i work via Webbrowser and Nextcloud-Client.
can also connect via Putty and root to the VM.

Hi Simon,
did you try to change the ip address in the config.php (/var/www/nextcloud/config/config.php in my case)?

Should be like:

<?php $CONFIG = array ( 'instanceid' => 'xxxxxxxxxxxxxxxx', 'passwordsalt' => 'yyyyyyyyyyyyyyyyyyyyy', 'secret' => 'zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz', 'trusted_domains' => array ( 0 => 'your_nextcloud_dom.ain', 1 => '192.168.1.xx', 2 => 'localhost', ), In your ip address set for the xx yours

Good catch soyo!

@infotech Thanks:-)