Skip to content

Python simple web server

The absolutely fastest way to get a simple web server up and running using Python 3, for development purposes.

cd my_web_root
python -m http.server

Or if you are on Python 2.x:

cd my_web_root
python -m SimpleHTTPServer 8000

Then just access http://your-ip:8000 to access the web server contents. Hit ctrl+c to exit.

Comments