Web Server

HTTP Matlab Web Server, allows m-files to be executed in a browser

You are now following this Submission

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

webserver(port)

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

Example,
webserver(4000);
% Use firefox or internet explorer and visit http://localhost:4000/

Cite As

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

Acknowledgements

Inspired: Simple Network Information Server (SNIS)

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.4.0.0

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

1.3.0.0

Update for ice-browser

1.2.0.0

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

1.1.0.0

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

1.0.0.0