Connection problems between 2 servers

I have an owncloud server running in a hosted enviroment which perfectly fine. We have a sister company which also runs owncloud, and now we need to share some files.
The idea was to use federated sharing, however we are experiencing some issues.
I can add their server in the trusted server list, however they cannot add mine.
When they try they get this error: Client error response [url] 212.98.105.132/status.php [status code] 404 [reason phrase] Not Found

I have pasted some info about my system below, but dont have too much info about their system unfortunately.

–>

Steps to reproduce

Expected behaviour

Other server should be able to add our server.

Actual behaviour

We are getting the error: Client error response [url] 212.98.105.132/status.php [status code] 404 [reason phrase] Not Found

Server configuration

Operating system: Ubuntu 16.04.3 LTS

Web server: apache 2

**Database:**MySQL

PHP version: PHP 7.0.22-0ubuntu0.16.04.1

ownCloud version:: 9.1.6

**Updated from an older ownCloud or fresh install: fresh install

**Where did you install ownCloud from: The official package

Signing status (ownCloud 9.0 and above):

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

**The content of config/config.php:

$CONFIG = array (
‘updatechecker’ => false,
‘instanceid’ => ‘ocz8ky2fap1w’,
‘passwordsalt’ => ‘JTHQPaEqH29n1mu5+XOG3JxbOHoF8i’,
‘secret’ => ‘wMo43JWcyP8N7rD+Vy1WVBjEFUvMEE/xD8zXivEvlt0c22dC’,
‘trusted_domains’ =>
array (
0 => ‘ip of server’,
1 => ‘0.0.0.0’,
2 => ‘10.8.0.0’,
),
‘datadirectory’ => ‘/var/www/owncloud/data’,
‘overwrite.cli.url’ => ‘insert ip here/owncloud’,
‘dbtype’ => ‘mysql’,
‘version’ => ‘9.1.6.2’,
‘dbname’ => ‘owncloud’,
‘dbhost’ => ‘localhost’,
‘dbtableprefix’ => ‘oc_’,
‘dbuser’ => ‘oc_admin’,
‘dbpassword’ => ‘M6Smmf75ibU8zmOBjvNYxC3aI+E06L’,
‘logtimezone’ => ‘UTC’,
‘installed’ => true,
‘mail_from_address’ => ‘das’,
‘mail_smtpmode’ => ‘php’,
‘mail_domain’ => ‘fake domain’,
‘maintenance’ => false,
‘theme’ => ‘’,
‘loglevel’ => 2,
);

ownCloud log (data/owncloud.log)

Insert your ownCloud log here
(just the last couple of lines):

{"reqId":"LIyug5phYDJI0MaWZlfT","remoteAddr":"185.96.91.2","app":"federation","message":"cURL error 28: Resolving timed out after 3513 milliseconds","level":3,"time":"2018-04-12T07:06:18+00:00","method":"POST","url":"\/owncloud\/index.php\/apps\/federation\/trusted-servers","user":"admin"}
{"reqId":"WN7EwdK9xg0iFlkRX5ld","remoteAddr":"185.96.91.2","app":"core","message":"Login failed: 'Lars' (Remote IP: '185.96.91.2')","level":2,"time":"2018-04-12T14:01:04+00:00","method":"PROPFIND","url":"\/owncloud\/remote.php\/webdav\/","user":"--"}
{"reqId":"hnK7O8MQRcAaIlNd98qM","remoteAddr":"185.96.91.2","app":"core","message":"Login failed: 'Lars' (Remote IP: '185.96.91.2')","level":2,"time":"2018-04-12T14:01:09+00:00","method":"PROPFIND","url":"\/owncloud\/remote.php\/webdav\/","user":"--"}
{"reqId":"ZsWqzafcDI\/LCQ1OENpL","remoteAddr":"185.96.91.2","app":"core","message":"Login failed: 'Lars' (Remote IP: '185.96.91.2')","level":2,"time":"2018-04-12T14:01:15+00:00","method":"PROPFIND","url":"\/owncloud\/remote.php\/webdav\/","user":"--"}
{"reqId":"8z9lORMs7XE14Qt0s2ty","remoteAddr":"185.96.91.2","app":"federation","message":"cURL error 28: Resolving timed out after 3514 milliseconds","level":3,"time":"2018-04-17T10:04:48+00:00","method":"POST","url":"\/owncloud\/index.php\/apps\/federation\/trusted-servers","user":"admin"}
{"reqId":"VkEytR9q2FlPkWS2kYom","remoteAddr":"185.96.91.2","app":"federation","message":"cURL error 28: Connection timed out after 3001 milliseconds","level":3,"time":"2018-04-17T10:30:05+00:00","method":"POST","url":"\/owncloud\/index.php\/apps\/federation\/trusted-servers","user":"admin"}
{"reqId":"LiQ6HfxyJOxt9mnZ\/Fsn","remoteAddr":"172.16.65.206","app":"core","message":"Trusted domain error. \"172.16.65.206\" tried to access using \"172.16.65.205\" as host.","level":2,"time":"2018-04-24T07:54:46+00:00","method":"GET","url":"\/owncloud\/status.php","user":"--"}
{"reqId":"pyLr4v2B+qN+k8x2ohSI","remoteAddr":"172.16.65.206","app":"core","message":"Trusted domain error. \"172.16.65.206\" tried to access using \"172.16.65.205\" as host.","level":2,"time":"2018-04-24T07:54:47+00:00","method":"GET","url":"\/owncloud\/status.php","user":"--"}
{"reqId":"Ho7leC8GUHMUaoNFTDSk","remoteAddr":"172.16.65.206","app":"core","message":"Trusted domain error. \"172.16.65.206\" tried to access using \"172.16.65.205\" as host.","level":2,"time":"2018-04-24T07:55:06+00:00","method":"GET","url":"\/owncloud\/status.php","user":"--"}
{"reqId":"8Xal3KEy9shPXjorpS8d","remoteAddr":"172.16.65.206","app":"core","message":"Trusted domain error. \"172.16.65.206\" tried to access using \"172.16.65.205\" as host.","level":2,"time":"2018-04-24T07:55:07+00:00","method":"GET","url":"\/owncloud\/status.php","user":"--"}
{"reqId":"yCU3rc\/19L\/HkjWqWYD5","remoteAddr":"172.16.65.206","app":"core","message":"Trusted domain error. \"172.16.65.206\" tried to access using \"172.16.65.205\" as host.","level":2,"time":"2018-04-24T07:56:34+00:00","method":"GET","url":"\/owncloud\/status.php","user":"--"}
{"reqId":"oAdWkMCx0507\/Z7h\/r1D","remoteAddr":"172.16.65.206","app":"core","message":"Trusted domain error. \"172.16.65.206\" tried to access using \"172.16.65.205\" as host.","level":2,"time":"2018-04-24T07:56:34+00:00","method":"GET","url":"\/owncloud\/status.php","user":"--"}
{"reqId":"sW0SFOY\/Hu9Fv\/vnnM1b","remoteAddr":"172.16.65.206","app":"core","message":"Trusted domain error. \"172.16.65.206\" tried to access using \"172.16.65.205\" as host.","level":2,"time":"2018-04-24T07:56:41+00:00","method":"GET","url":"\/owncloud\/status.php","user":"--"}
{"reqId":"YTZQQMTdYCBPgR0xbDlH","remoteAddr":"172.16.65.206","app":"core","message":"Trusted domain error. \"172.16.65.206\" tried to access using \"172.16.65.205\" as host.","level":2,"time":"2018-04-24T07:56:41+00:00","method":"GET","url":"\/owncloud\/status.php","user":"--"}
{"reqId":"rGjGHHZHxXIFiUdaogjJ","remoteAddr":"172.16.65.206","app":"core","message":"Trusted domain error. \"172.16.65.206\" tried to access using \"172.16.65.205\" as host.","level":2,"time":"2018-04-24T07:58:34+00:00","method":"GET","url":"\/owncloud\/","user":"--"}
{"reqId":"XtYGoGPRA086\/wJ+7CvN","remoteAddr":"172.16.65.206","app":"core","message":"Trusted domain error. \"172.16.65.206\" tried to access using \"172.16.65.205\" as host.","level":2,"time":"2018-04-24T07:58:34+00:00","method":"GET","url":"\/owncloud\/index.php\/core\/js\/oc.js?v=3aabbe96c4399d877cea6ce49c0402f4","user":"--"}
{"reqId":"bVespL6JT4xOWSenhbIc","remoteAddr":"172.16.65.206","app":"core","message":"Trusted domain error. \"172.16.65.206\" tried to access using \"172.16.65.205\" as host.","level":2,"time":"2018-04-24T07:58:35+00:00","method":"GET","url":"\/owncloud\/cron.php","user":"--"}
{"reqId":"62VELe4XZqfTgYFVffxr","remoteAddr":"172.16.65.206","app":"core","message":"Trusted domain error. \"172.16.65.206\" tried to access using \"172.16.65.205\" as host.","level":2,"time":"2018-04-24T07:58:46+00:00","method":"GET","url":"\/owncloud\/status.php","user":"--"}
{"reqId":"8t3mjhpm9QkoWrCMNXOy","remoteAddr":"172.16.65.206","app":"core","message":"Trusted domain error. \"172.16.65.206\" tried to access using \"172.16.65.205\" as host.","level":2,"time":"2018-04-24T07:58:46+00:00","method":"GET","url":"\/owncloud\/","user":"--"}
{"reqId":"BJlfqV2KfMTllgsAPnlS","remoteAddr":"172.16.65.206","app":"core","message":"Trusted domain error. \"172.16.65.206\" tried to access using \"172.16.65.205\" as host.","level":2,"time":"2018-04-24T07:58:47+00:00","method":"GET","url":"\/owncloud\/status.php","user":"--"}
{"reqId":"HpnIoBlmAlWJuhdYffyy","remoteAddr":"172.16.65.206","app":"core","message":"Trusted domain error. \"172.16.65.206\" tried to access using \"172.16.65.205\" as host.","level":2,"time":"2018-04-24T07:59:02+00:00","method":"GET","url":"\/owncloud\/status.php","user":"--"}
{"reqId":"DqUj2XiuRLPPikYYPxAh","remoteAddr":"172.16.65.206","app":"core","message":"Trusted domain error. \"172.16.65.206\" tried to access using \"172.16.65.205\" as host.","level":2,"time":"2018-04-24T07:59:02+00:00","method":"GET","url":"\/owncloud\/","user":"--"}
{"reqId":"kN49EZa4PC+QNUQPw2rV","remoteAddr":"172.16.65.206","app":"core","message":"Trusted domain error. \"172.16.65.206\" tried to access using \"172.16.65.205\" as host.","level":2,"time":"2018-04-24T07:59:03+00:00","method":"GET","url":"\/owncloud\/status.php","user":"--"}
{"reqId":"+6GKukc0PhIGObI++eyU","remoteAddr":"172.16.65.206","app":"core","message":"Trusted domain error. \"172.16.65.206\" tried to access using \"172.16.65.205\" as host.","level":2,"time":"2018-04-24T08:00:31+00:00","method":"GET","url":"\/owncloud\/","user":"--"}
{"reqId":"Hk\/E9zLCbfsAwUG3cLLA","remoteAddr":"172.16.65.206","app":"core","message":"Trusted domain error. \"172.16.65.206\" tried to access using \"172.16.65.205\" as host.","level":2,"time":"2018-04-24T08:00:31+00:00","method":"GET","url":"\/owncloud\/index.php\/core\/js\/oc.js?v=3aabbe96c4399d877cea6ce49c0402f4","user":"--"}
{"reqId":"n0zUCxgr08+4ZJKmDi5U","remoteAddr":"172.16.65.206","app":"core","message":"Trusted domain error. \"172.16.65.206\" tried to access using \"172.16.65.205\" as host.","level":2,"time":"2018-04-24T08:00:32+00:00","method":"GET","url":"\/owncloud\/cron.php","user":"--"}
{"reqId":"fcyb3k+Pr+jrj99Kfiz2","remoteAddr":"172.16.65.206","app":"core","message":"Trusted domain error. \"172.16.65.206\" tried to access using \"172.16.65.205\" as host.","level":2,"time":"2018-05-04T08:54:34+00:00","method":"GET","url":"\/owncloud\/status.php","user":"--"}
{"reqId":"JoM6r1IDAzM95NSmnyXa","remoteAddr":"172.16.65.206","app":"core","message":"Trusted domain error. \"172.16.65.206\" tried to access using \"172.16.65.205\" as host.","level":2,"time":"2018-05-04T08:54:34+00:00","method":"GET","url":"\/owncloud\/","user":"--"}
{"reqId":"oivM4eclAAXhPugQ5JCM","remoteAddr":"172.16.65.206","app":"core","message":"Trusted domain error. \"172.16.65.206\" tried to access using \"172.16.65.205\" as host.","level":2,"time":"2018-05-04T08:54:34+00:00","method":"GET","url":"\/owncloud\/status.php","user":"--"}
{"reqId":"L51AZD\/TETQs3y4tCZsm","remoteAddr":"172.16.65.206","app":"core","message":"Trusted domain error. \"172.16.65.206\" tried to access using \"172.16.65.205\" as host.","level":2,"time":"2018-05-04T08:56:42+00:00","method":"GET","url":"\/owncloud\/status.php","user":"--"}
{"reqId":"aVvIXnZwv19ypvpr5ELY","remoteAddr":"172.16.65.206","app":"core","message":"Trusted domain error. \"172.16.65.206\" tried to access using \"172.16.65.205\" as host.","level":2,"time":"2018-05-04T08:56:42+00:00","method":"GET","url":"\/owncloud\/","user":"--"}
{"reqId":"t3UQFylozD7ESW9\/APWh","remoteAddr":"172.16.65.206","app":"core","message":"Trusted domain error. \"172.16.65.206\" tried to access using \"172.16.65.205\" as host.","level":2,"time":"2018-05-04T08:56:42+00:00","method":"GET","url":"\/owncloud\/status.php","user":"--"}
{"reqId":"axuJnQ9CM6glz4mZZVUo","remoteAddr":"172.16.65.206","app":"core","message":"Trusted domain error. \"172.16.65.206\" tried to access using \"172.16.65.205\" as host.","level":2,"time":"2018-05-04T09:43:02+00:00","method":"GET","url":"\/owncloud\/status.php","user":"--"}
{"reqId":"yiz4AExqh3MW2BQKWyIj","remoteAddr":"172.16.65.206","app":"core","message":"Trusted domain error. \"172.16.65.206\" tried to access using \"172.16.65.205\" as host.","level":2,"time":"2018-05-04T09:43:02+00:00","method":"GET","url":"\/owncloud\/","user":"--"}
{"reqId":"qVgANXMkb96nq0YP279C","remoteAddr":"172.16.65.206","app":"core","message":"Trusted domain error. \"172.16.65.206\" tried to access using \"172.16.65.205\" as host.","level":2,"time":"2018-05-04T09:43:02+00:00","method":"GET","url":"\/owncloud\/status.php","user":"--"}
{"reqId":"Sv2+b+Y5\/MWJgFwoTVNS","remoteAddr":"172.16.65.206","app":"core","message":"Trusted domain error. \"172.16.65.206\" tried to access using \"172.16.65.205\" as host.","level":2,"time":"2018-05-04T09:43:25+00:00","method":"GET","url":"\/owncloud\/status.php","user":"--"}
{"reqId":"bZsPVBmVPS3NmPjOQP9T","remoteAddr":"172.16.65.206","app":"core","message":"Trusted domain error. \"172.16.65.206\" tried to access using \"172.16.65.205\" as host.","level":2,"time":"2018-05-04T09:43:25+00:00","method":"GET","url":"\/owncloud\/","user":"--"}
{"reqId":"4yUuuYU4z92KZR4nl7hu","remoteAddr":"172.16.65.206","app":"core","message":"Trusted domain error. \"172.16.65.206\" tried to access using \"172.16.65.205\" as host.","level":2,"time":"2018-05-04T09:43:25+00:00","method":"GET","url":"\/owncloud\/status.php","user":"--"}
{"reqId":"eHw0A9aAQjqah025V3HO","remoteAddr":"172.16.65.206","app":"core","message":"Trusted domain error. \"172.16.65.206\" tried to access using \"172.16.65.205:80\" as host.","level":2,"time":"2018-05-07T07:05:08+00:00","method":"GET","url":"\/owncloud\/status.php","user":"--"}
{"reqId":"S6wkRecSg5B\/h8C\/Dai8","remoteAddr":"172.16.65.206","app":"core","message":"Trusted domain error. \"172.16.65.206\" tried to access using \"172.16.65.205:80\" as host.","level":2,"time":"2018-05-07T07:05:08+00:00","method":"GET","url":"\/owncloud\/status.php","user":"--"}
{"reqId":"PtVq+5Tn7p3liAv24SYQ","remoteAddr":"172.16.65.206","app":"core","message":"Trusted domain error. \"172.16.65.206\" tried to access using \"172.16.65.205\" as host.","level":2,"time":"2018-05-07T09:33:00+00:00","method":"GET","url":"\/owncloud\/status.php","user":"--"}
{"reqId":"yTJuYE6vHqknBdoCBzwr","remoteAddr":"172.16.65.206","app":"core","message":"Trusted domain error. \"172.16.65.206\" tried to access using \"172.16.65.205\" as host.","level":2,"time":"2018-05-07T09:33:00+00:00","method":"GET","url":"\/owncloud\/status.php","user":"--"}
{"reqId":"lfzJz0sF8\/lEdRGa+0NR","remoteAddr":"172.16.65.206","app":"core","message":"Trusted domain error. \"172.16.65.206\" tried to access using \"172.16.65.205:80\" as host.","level":2,"time":"2018-05-07T09:33:15+00:00","method":"GET","url":"\/owncloud\/status.php","user":"--"}
{"reqId":"6lsu0Z96zJp5YZJcMgDM","remoteAddr":"172.16.65.206","app":"core","message":"Trusted domain error. \"172.16.65.206\" tried to access using \"172.16.65.205\" as host.","level":2,"time":"2018-05-07T09:33:15+00:00","method":"GET","url":"\/owncloud\/","user":"--"}
{"reqId":"fTmBWcedHOczpqJ0v9\/p","remoteAddr":"172.16.65.206","app":"core","message":"Trusted domain error. \"172.16.65.206\" tried to access using \"172.16.65.205\" as host.","level":2,"time":"2018-05-07T09:33:15+00:00","method":"GET","url":"\/owncloud\/status.php","user":"--"}
{"reqId":"rlDOtr4QmuLRN++LEwHx","remoteAddr":"185.96.91.2","app":"core","message":"Could not get categories: cURL error 7: Failed to connect to api.owncloud.com port 443: No route to host","level":3,"time":"2018-05-23T10:36:29+00:00","method":"GET","url":"\/owncloud\/index.php\/apps\/configreport\/report","user":"admin"}

Hi, so you mean include the IP of the new server? I thought the trusted domain array was only for clients?

To me it looks like this is the reason for your issue which already contains the required information that the system can’t reach the other one at the used IP.

Hi Tom, im not quite following. Yes, it does state it cannot reach the system, but the problem is that it should. So im wondering if there is anything in the setup causing it.
I can reach the other server perfectly fine (atleast it can connect).

After re-checking the message i don’t think that it states that it cannot reach the system. If i understand it correctly the message just says that the contacted system is responding unexpectedly with a “not found” message to the mentioned request for status.php.

Maybe the wrong system is contacted or is responding differently as expected?

Well im guessing youre right about the last part, I just cannot figure out why. From all I have read about it, it should be working.