Quick and Dirty Network File sharing with Python

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 –, 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!

7 Replies to “Quick and Dirty Network File sharing with Python”

  1. I i just want to leave a quick thoughts to mention your blog site was awesome. I found it on the search engines seek just after experiencing lots of other information which was probably not related. I think I would find this much earlier considering how very good the information is.

Comments are closed.