Dec 042009
 
 python -m SimpleHTTPServer 9914

This command runs a simple single-threaded web server on any port you choose as the current user. Logging is to stdout/stderr, and a ctrl-c will stop the server. Great for temporarily sharing a directory. All data in the folder will be visible, including (dot) .files and they can be downloaded, but not opened via the browser.

If you are behind a firewall, make sure to open the port you are using.

 Posted by at 2:22 am

 Leave a Reply