Share your data files quickly using the python SimpleHTTPServer

Before the cloud era, people used FTP and HTTP to exchange big data files… TIL how to setup quickly a temporal HTTP server to share my files with people out there without making use of dropbox or other modern software… 😀 (tx Fuzz :P)

To share files on a LAN:

$ cd /path/your_files_directory
$ python -m SimpleHTTPServer <port>

If you leave <port> empty 8000 will be used.

To share the same files on the internet, you only need to setup port forwarding for the port you used (or for the port 8000 if you used the default). You may also need to setup dynamic DNS (eg: https://nsupdate.info/about/) if you don’t have a static IP and you intend to keep the server running for long.. 🙂

EOF!     // (Quick, isn’t it?)

 

Advertisements
Share your data files quickly using the python SimpleHTTPServer

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s