Quick and Dirty Network File sharing with Python

advertisement logo

 

Ever find yourself in need to share file over the network quickly, but find yourself lacking time to setup a proper NFS or samba share? Here’s a way to do this with the good old Python CLI.

  • First, go to the directory that you want to share, for example ~/Desktop
  • Then run this command "python -m SimpleHTTPServer"
  • You may access the folder from a remote computer using any webrowser using the url – http://192.168.1.20:8000, change the ip address accordingly
Simple HTTP Server
file sharing with python

You may find this technique offers limited options to share files, but its a real time saver!

Bookmark this article
  • NewsVine
  • Netvouz
  • Reddit
  • del.icio.us
  • StumbleUpon
  • Technorati
  • PDF
  • Digg
  • Facebook
  • Twitter
Tags: , , , , , , , , , , , , , ,

Keep updated with this website! : Subscribe to your email

Recommended Reading

6 smashing comments for this post.

  1. mysurface Said:

    cool!
    Its been awhile I didn’t see u online irc, where have u been?

  2. liuzhongshu Said:

    Cool!!! I find it is useful for me when i need share some files.

  3. Milinda Said:

    You can use thttpd also for sharing files over the network. I have discuss it here: http://mpathirage.com/quickly-share-your-files-over-the-network-in-linux/.

  4. Melayu Boleh Said:

    Really intersting.. I get it now.. its very useful for me when i want to sharing a file..

  5. weblog popular 1malaysia Said:

    really interesting article.. how u do the tag cloud? its very nice..

  6. Farukhahamed Said:

    Excellent ,Marveles ,Superb.
    Thank you for giving this thought.

Leave a Comment

Subscribe by email

Enter your Email

 

Bad Behavior has blocked 2959 access attempts in the last 7 days.

HostGator coupons mypapit's Profile on Ping.sg