Simple HTTP server with Python

Simply run this from the command line and it will server the content of the current directory:

python -m SimpleHTTPServer 80

I recommend setting an alias for that and make sure that the port is always open from the internet. It makes it very easy to share stuff with friends temporarily.

Python 3

SimpleHTTPServer is gone in Python 3.

You can now use:

python3 -m http.server 8000

Thanks for reading this post!

Did you find an issue in this article?

- click on the following Github link
- log into Github with your account
- click on the line number containing the error
- click on the "..." button
- choose "Reference in new issue"
- add a title and your comment
- click "Submit new issue"

Your feedback is much appreciated! πŸ€œπŸΌπŸ€›πŸΌ

You can also drop me a line below!