4-dmug
Last Updated: February 27, 2018
·
2.002K
· bengo

Web server one-liner

Instantly serve the current directory on port 8888:

python -m SimpleHTTPServer 8888

5 Responses
Add your response

5161

you don't need to specify the port, the default is 8000

over 1 year ago ·
5175

Like :D full python

over 1 year ago ·
5214

PHP has an nested server too.

over 1 year ago ·
5215

For python3: python -m http.server

over 1 year ago ·
5254

Nice tip...this is a great way to share files quickly and easily

over 1 year ago ·