does the Matlab web app work over different local network?

8 views (last 30 days)
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

Answers (1)

Kojiro Saito
Kojiro Saito on 14 Aug 2019
>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 Comments
Anastasia Grigoreva
Anastasia Grigoreva on 22 Jun 2020
Edited: Anastasia Grigoreva on 22 Jun 2020
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 on 23 Jun 2020
@Anastasia
Did you get any error message in Web browser?
For example, Google Chrome has Console window so, you can find any hint.

Sign in to comment.

Categories

Find more on MATLAB Web App Server in Help Center and File Exchange

Products


Release

R2018a

Community Treasure Hunt

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

Start Hunting!