Skip to content

Quick http server to share files

guo edited this page Aug 21, 2020 · 1 revision

share your file with people using a quick http server

Most machines have python installed. You can try python or python3 to see if you have it installed already. If not, you can use

sudo apt install python3

to install a copy.

Then you can create a dir and move files to the dir, such as ~/temphttp. Then go to the dir, use the follow cmd

python3 -m http.server 8888

or

python -m SimpleHTTPServer 8888

then your files will be available at http://[ip]:8888/.

If the url is not accessible, please check your firewall.

Clone this wiki locally