I needed to restart the router after port forward then it work with the ip adress. but when I try to access from domain 'http://xxxxx.ddns.net/owncloud', it says " You access the server from an untrusted domain.
Please contact your administrator. If you are an administrator of this instance, configure the "trusted_domains" setting in config / config.php. An example configuration is provided in config / config.sample.php or at the documentation."
I already added domain name in config file .
here
?php
$CONFIG = array (
'instanceid' => 'xxxxxxxxxxx',
'passwordsalt' => 'xxxxxxxxxxxxxxxxxxxxx/',
'secret' => 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
'trusted_domains' =>
array (
0 => '192.168.10.144',
1 => 'xxx.xxx.xxx.xxx',
2 => 'xxxxx.ddns.net/owncloud',
),
'datadirectory' => '/var/www/html/owncloud/data',
'overwrite.cli.url' => 'http://xxxxx.ddns.net/owncloud',
'dbtype' => 'mysql',
'version' => '10.0.8.5',
'dbname' => 'owncloud',
'dbhost' => 'localhost',
'dbtableprefix' => 'oc_',
'dbuser' => 'xxxxx',