Try the fastest and simplest way to install ONLYOFFICE

PHP Example API remote client connection problem.

Integration questions/issues

PHP Example API remote client connection problem.

Postby napoleon211092 » Wed May 23, 2018 3:49 am

Hi,

I have a problem when connection PHP Example API webserver.

I install the system as following:

1/ I install document server (developer edition), here is install link https://helpcenter.onlyoffice.com/server/developer-edition/linux/linux-installation.aspx.
This server has IP address : 192.168.131.146

2/ Then, I install webserver and use PHP Example API follow this link https://api.onlyoffice.com/editors/example/php.
This server has IP address: 192.168.131.144.
I also edit file config.php as:
Code: Select all
$GLOBALS['DOC_SERV_CONVERTER_URL'] = "https://192.168.131.146/ConvertService.ashx";
$GLOBALS['DOC_SERV_API_URL'] = "https://192.168.131.146/web-apps/apps/api/documents/api.js";
$GLOBALS['DOC_SERV_PRELOADER_URL'] = "https://192.168.131.146/web-apps/apps/api/documents/cache-scripts.html";



After installed successfully, I try:
- Stay on server 192.168.131.144, open web browser and type http://localhost/PHP%20Example/ view and edit office file --> it's worked!
- But, when I used to use another computer (have IP address: 192.168.101.58), open browser and type http://192.168.131.144/PHP%20Example/ ---> It appears in the web pages similar, I can upload files, but can not display or edit file (unknow error!!!)

P/S:
All three machines can communicate with each other (I have check with ping cmd). Both server (192.168.131.146 and 192.168.131.144), I install in VMware and 192.168.101.58 is real computer.
I attack system scheme and the error.
b.PNG
System scheme
b.PNG (14.68 KiB) Viewed 333 times

a.PNG
a.PNG (45.5 KiB) Viewed 333 times

Please help me.
Thanks.
napoleon211092
 
Posts: 3
Joined: Thu May 17, 2018 3:13 am

Re: PHP Example API remote client connection problem.

Postby Maxim » Wed May 23, 2018 8:06 am

Hello napoleon211092!
I suppose that 192.168.101.58 machine has no access proper to the document server.
All three machines can communicate with each other (I have check with ping cmd).

Try to use wget command. It's possible that you can ping your host but you has no a chance to get proper connection.
Maxim
 
Posts: 1746
Joined: Tue Oct 11, 2016 2:34 pm


Return to API

Who is online

Users browsing this forum: No registered users and 0 guests

cron