MATLAB: How to troubleshoot an inaccessible Web App Server in the Intranet on Windows

accessibleappintranetipMATLAB Web Servernotportservertroubleshootweb

How do I troubleshoot an inaccessible Web App Server in the Intranet on Windows?

Best Answer

To check if the Service was running , enter the following command in the Windows command prompt (cmd) of the host machine with Administrator right :
C:\> sc quesry "<WEB_SERVER_SERVICE_NAME>"
*E.g *: In R2019b , WEB_SERVER_SERVICE_NAME = "MATLAB Web Apps (R2019b)"
You should have the STATE field set to 'RUNNING' if it's not, please try to run the Service and try to connect again.
To test the communication between the client and the host , you will need to use the ping command in the Windows command prompt (cmd) of the client machine :
C:\> ping <HOST_MACHINE_NAME>
or
C:\> ping -a <HOST_MACHINE_IP>
You should get a response like the following one :
C:\>ping -a 192.168.1.123
Pinging Office1 [192.168.1.123] with 32 bytes of data:
Reply from 192.168.1.123: bytes=32 time<1ms TTL=128
Reply from 192.168.1.123: bytes=32 time<1ms TTL=128
Reply from 192.168.1.123: bytes=32 time<1ms TTL=128
Reply from 192.168.1.123: bytes=32 time<1ms TTL=128
Ping statistics for 192.168.1.123:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 0ms, Average = 0ms
Enter the following command into a Windows command prompt to see if the port used for the Web App Server is currently open on all network interfaces:
C:\> netsh firewall show state
You should have a similar result :
If the port used by the user does not appear in the list, you will need to open it manually by entering the following command in a Windows command prompt with Administrator right :
C:\> netsh firewall add portopening TCP <WEB_SERVER_PORT> "MATLAB WebApp Server"