MATLAB Answers

does the Matlab web app work over different local network?

60 ビュー (過去 30 日間)
abdulrahman al-sabaawi
abdulrahman al-sabaawi 2019 年 8 月 10 日
コメント済み: Kojiro Saito 2020 年 6 月 23 日
Hello everyone
I have designed a Matlab web app using the MATLABWebAppServer.. when I share the URL of the app to another computer that is connected the same internet network (the same router), it works properly on the browser, but when I change the network of one of the computers to another network (different router), that lead to terminate the connection and the browser give me a message of can not reach the site which mean can not play the app on the browser. is that mean the MATLABWebAppServer does not support connection over different networks?
I found this sentnece in the following link but I didnt understand it.
"Web apps are designed to run only within a trusted intranet environment, not in the open Internet" https://www.mathworks.com/help/compiler/web-apps.html?fbclid=IwAR3RnnwynsrrQzH43-cZbzxh77WWndDlk5KYCYTO7tn9OUeOjj75vN9pCKY

  0 件のコメント

サインインしてコメントする。

回答 (1 件)

Kojiro Saito
Kojiro Saito 2019 年 8 月 14 日
>MATLABWebAppServer does not support connection over different networks?
No, Web Apps Server does support connection even if client machines are in different networks from that of Web Apps Server machine's network.
There might be two reasons why you cannot access Web Apps from a different network.
1. Host name is not resolved.
Inside the same network, client machine can access to the server with just a short host name (for example,
But from different networks, short host name might not be resolved.
Could you confirm you can reach to the server from the different network by
>ping MACHINENAME
from Command Prompt or Terminal.
If short name cannot be resolved, try adding FQDN or using IP address.
such as,
local IP address (http://192.168.X.X:9988)
Please replace SERVERNAME, yourcompany.com, 192.168.X.X with your actual hostname, FQDN and IP address.
2. TCP port number is blocked by Firewall
Web Apps Server uses a TCP port (9988, by default). You need to make it clear whether this port number is open
in Windows Firewall, Linux iptables or hardware firewalls.
If not, you need to open that TCP port in order to allow incoming access.

  2 件のコメント

Anastasia Grigoreva
Anastasia Grigoreva 2020 年 6 月 22 日
Hello, I have the same Problem. I have done all your instructions. It doesnt help....
-Port 9988 was opened
-local IP Adress was used
It doesnt work . I have the lastest Version of Matlab 2020a.
Kojiro Saito
Kojiro Saito 2020 年 6 月 23 日
@Anastasia
Did you get any error message in Web browser?
For example, Google Chrome has Console window so, you can find any hint.

サインインしてコメントする。

製品


リリース

R2018a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by