Setup quick HTTP server with Python and share files

Sometimes you may run into need to run quickly web server on your machine – regardless if this is [easyazon_link asin=”111821854X” locale=”US” new_window=”default” nofollow=”default” tag=”wn0d5-20″ add_to_cart=”default” cloaking=”default” localization=”default” popups=”default”] Linux [/easyazon_link] or Mac and you can setup HTTP server in one command line and share files right away.

As long you make sure you have installed [easyazon_link asin=”B00LU243LE” locale=”US” new_window=”default” nofollow=”default” tag=”wn0d5-20″ add_to_cart=”default” cloaking=”default” localization=”default” popups=”default”] Python [/easyazon_link] on your machine, you can now navigate to the directory where you have files you want to share with your fellow co-workers quickly over network. Lets assume I want to share directory PACKAGE with my team.

cd PACKAGE
python -m SimpleHTTPServer

This is it! Quick and simple. Go to your browser and enter your IP address and port 8000. This is default port for this simple webserver. You just need to share your IP:8000 with your team and they can easily access and download the files in the directory PACKAGE 🙂 I did not try this on Windows under Cygwin – but I believe this should work under Cygwin as well.

[easyazon_block add_to_cart=”default” align=”left” asin=”1449355730″ cloaking=”default” layout=”right” localization=”default” locale=”US” nofollow=”default” new_window=”default” tag=”wn0d5-20″]

Leave a Reply