Sharing files over HTTP

Quick sharing of a single/multiple files in a directory over HTTP protocol will be covered. Let's assume that the file sharing will be done over wlp3s0 Wi-Fi interface and the server's IP address is 192.168.0.24 as shown below:

Python2 SimpleHTTPServer

Open http://192.168.0.24:8000 in your web browser on another computer. You will be able to see the content of directory "~/Desktop".

Python3 HTTPSERVER

Open http://192.168.0.24:8000 in your web browser on another computer. You will be able to see the content of directory "~/Desktop".

Python3 QuickServe

Open http://192.168.0.24:8000 in your web browser on another computer. You will be able to see the content of directory "~/Desktop".

Jupyter Notebook

Jupyter Notebook will automatically launch a web browser and open a specific web page.

TWS (Perl)

Only one file at a time is shared.

WWWSHARE (BASH)

Pure BASH solution is depicted here: Simple ad-hoc file sharing.
A slightly modified version for the wlp3s0 interface is given below:

Install netcat and run the script with a file name as an argument:

Open web browser at address http://192.168.0.24:8081.

WWWSHARE (GAWK)

Similar version of a BASH solution but with using a GAWK script:

Instead of the external IP address, use the inernal one for interface wlp3s0.
So open http://192.168.0.24:8006/FileToShare instead of http://175.102.234.162:8006/FileToShare for example.

Leave a Reply

Your email address will not be published. Required fields are marked *