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

Web server one-liner

Instantly serve the current directory on port 8888:

python -m SimpleHTTPServer 8888
Say Thanks
Respond

5 Responses
Add your response

5161
Df8e5930113ab9844be90e1271e153fb

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
E47c84de4ccde5f6e99444e04fbb3838

PHP has an nested server too.

over 1 year ago ·
5215
67c65686e0a632830c71843974f8b88c

For python3: python -m http.server

over 1 year ago ·
5254
Cropped kat rob21

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

over 1 year ago ·