Share Current Folder over the Web

Tagged with: , , , , , , ,

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 Responses to “Share Current Folder over the Web

  • 1
    Nadav
    May 15th, 2009 18:03

    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
    Pradeep
    August 28th, 2009 18:26

    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