Web Server

HTTP Matlab Web Server, allows m-files to be executed in a browser
Updated 18 Oct 2011

View License

This function WEBSERVER, is a HTTP webserver for HTML code and images and also allows execution of Matlab code through the web.


- HTML and images
- Sub-Folders
- Upload files
- M file execution

% Use firefox or internet explorer and visit http://localhost:4000/

Cite As

Dirk-Jan Kroon (2024). Web Server (https://www.mathworks.com/matlabcentral/fileexchange/29027-web-server), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2010a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Find more on Call Web Services from MATLAB Using HTTP in Help Center and MATLAB Answers

Inspired: Simple Network Information Server (SNIS)

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes

- Chinese character-set bug (reported by Ernest)
- Try and catch around java connection error caused by IE
- added config variable to function-header

Update for ice-browser

Now it also works with the "ICE-browser" in Matlab. Also added error information and config options.

Fixed Java-Port error due to code crash, and fixed refresh bug by waiting longer for the data. Problems where reported by "Nicolas Billard"