Wednesday, May 8, 2019

Share directory over HTTP with Python

cd the directory you want to share, and
# For Python >=2.4
python -m SimpleHTTPServer 8888
# For Python 3.x
python3 -m http.server 8888
Then you can access this http server with: http://your_host_ip:8888

No comments: