Share link in a owncloud

Please help us by providing the following info. Before posting please also check the pinned "Known issues" threads and make sure that you're running the latest available version for your oC release: https://owncloud.org/changelog/

Steps to reproduce
1. Select a File
2. Mark in "Share Link"
3.

Expected behaviour
I need to change the "local address"(192.168.22.254) for other one. How can i change this?

Actual behaviour
http://192.168.22.254/owncloud/index.php/s/Off81VEdiG1HqgG

Server configuration
Operating system: Centos 6.8
Web server: Apache
Database: Mysql
PHP version:
ownCloud version (see ownCloud admin page):
Updated from an older ownCloud or fresh install:
Special configuration (external storage, external authentication, reverse proxy, server-side-encryption):

ownCloud log (data/owncloud.log)

Please paste possible errors in the following code block, see https://central.owncloud.org/t/how-to-find-webserver-or-oc-logfile-enable-php-logfile/808 for more info

Integrity status for oC9+

Login as admin user into your ownCloud and access
http://example.com/index.php/settings/integrity/failed
paste the results here.

The share links are generated depending on the URL you're using to access your ownCloud instance. However you might be able to change this behavior with one of these config.php parameters:

https://doc.owncloud.org/server/latest/admin_manual/configuration_server/config_sample_php_parameters.html#proxy-configurations