29 May

Share Current Folder over the Web

Want to show something on your machine to someone over the web? Don’t copy it or upload it somewhere. Just run “webshare” and the current directory and everything beneath it will be served from a new web server listening on port 8000. When your pal is finished, hit control-c.


python -c "import SimpleHTTPServer;SimpleHTTPServer.test()"

For a slightly more advanced version of this server, see this article(Warning: German Article – but code is self explaining)

2 thoughts on “Share Current Folder over the Web

  1. I like how you don’t need to write a single line of code and that you can use the default behaviour of the HTTP module to host files.

  2. Hey i tried executing the command. Its not working. What might be the problem. Whenever i start the connection it says starting 0.0.0.0 on port 2000. Its not showing the ip?

Leave a Reply

Your email address will not be published. Required fields are marked *