Wrong IP in public link

Ask all your questions regarding OC 8.0 and 8.1 Please read the Support Forum Rules
Forum rules
The forums were migrated over to https://central.owncloud.org which is based on the forum software Discourse. The forums here is put into read-only mode starting from today.

More background information about this move and the reasoning behind it is available in this blogpost:

https://daniel.molkentin.net/2016/07/20 ... d-central/
bwen51
Newbie
Posts: 3
Joined: Fri Jun 24, 2016 4:22 pm
ownCloud version: 8.1.5
Webserver: Apache
Database: MySQL
OS: Linux
PHP version: 5.5

Wrong IP in public link

Postby bwen51 » Fri Jun 24, 2016 4:26 pm

Hello,

When i access owncloud on LAN with a private address and I try to make a file public, it generate a link with the local address.
How to do to make it generate with the public ip address please?

Thanks
Regards

RealRancor
ownCloud master
Posts: 17381
Joined: Sat May 26, 2012 3:00 pm
ownCloud version: 9.0.2
Webserver: nginx
Database: MySQL
OS: Linux
PHP version: 7.0.x

Re: Wrong IP in public link

Postby RealRancor » Sun Jun 26, 2016 2:17 pm

You need to access ownCloud via public URL, not the private one.
*gone*

bwen51
Newbie
Posts: 3
Joined: Fri Jun 24, 2016 4:22 pm
ownCloud version: 8.1.5
Webserver: Apache
Database: MySQL
OS: Linux
PHP version: 5.5

Re: Wrong IP in public link

Postby bwen51 » Mon Jun 27, 2016 10:50 am

Thanks for your answer, I know if I connect with the public address, the public link is good but go explain that to my bosses... A person who doesnt work in IT department doesnt understand the difference between private and public IP... so my question was, how to generate the correct link when we access owncloud with the private address? we have only one public adress so it must be possible to modify a piece of code to always use a specified address in public link no?

bwen51
Newbie
Posts: 3
Joined: Fri Jun 24, 2016 4:22 pm
ownCloud version: 8.1.5
Webserver: Apache
Database: MySQL
OS: Linux
PHP version: 5.5

Re: Wrong IP in public link

Postby bwen51 » Mon Jun 27, 2016 12:59 pm

Moreover, its impossible to acces owncloud via the public address when you are on LAN because of the firewall, we cant go out from LAN to re-enter on the NAT server in DMZ via public access....

RealRancor
ownCloud master
Posts: 17381
Joined: Sat May 26, 2012 3:00 pm
ownCloud version: 9.0.2
Webserver: nginx
Database: MySQL
OS: Linux
PHP version: 7.0.x

Re: Wrong IP in public link

Postby RealRancor » Mon Jun 27, 2016 2:14 pm

Hi,

owncloud will always create the links from the hostname you're using to access the WebGUI. So if you're accessing it via public ip the URLs are the one from the public IP, if you're accessing it via the private IP the URLs are the one from the private IP.
*gone*


  • Similar Topics
    Replies
    Views
    Last post

Return to “ownCloud Server 8.0 and 8.1”

Who is online

Users browsing this forum: No registered users and 2 guests