Why am I having problems running the MATLAB Web Server examples?

9 views (last 30 days)
Why am I having problems running the MATLAB Web Server examples on Windows NT? What port numbers should I try, if I think another application is using the same port number as the MATLAB Web Server?
I get the following error, when running Apache Web Server:
Error: connect() failure.
And the following error when running Microsoft Personal Web Server:
error: socket() failure
I have all permissions to the alias directories (/cgi-bin and /icons).
What is wrong?

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 27 Jun 2009
Typically, this error occurs because the MATLAB Server service is not running. The MATLAB Web Server will stop running if there is some conflict with another Service running over the network. In this case, try stopping the services (both MATLAB Web Server, and Apache Server, for example), restarting your computer, and then restarting the services.
If this does not help, you may try using another Port Number. The best numbers to try are 1705 to 1711, or 27000 to 27010. The port number should be located in the
$MATLAB/webserver/matlabserver.conf file
(where $MATLAB = MATLABs root directory on your machine)
And in some cases, also in the
$MATLAB/toolbox/webserver/wsdemos/matweb.conf file.
Note: We have had problems in the past with the Webpeaks example. In some cases it will NOT work. You will get one of two errors:
Error: recv1() error: 10054
Error: MATLAB Web Server is not currently available.
Once you receive these errors, the MATLAB Server Service will stop, and you will need to RESTART them, in order for the other examples to run again, as well as your application.
NOTE: As of R2006b, the MATLAB Web Server is no longer available for sale and no new feature development or further bug fixes will occur.

More Answers (0)

Categories

Find more on Manage Products in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!