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 with 1 command… (thanks fuzz!)
To share files on a LAN:
1 2 |
$ 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.. π