Easy file sharing with Python SimpleHTTPServer

Cristian Radulescu • February 8, 2012

An easy way to share files from your computer is to use Python SimpleHTTPServer. You don't need to know Python programming to use the SimpleHTTPServer, the only requirement is to have Python installed on the machine where the files that needs to be shared are located.

Most Linux distributions are shipped with Python installed by default, but for Windows you might need to check how to use Python on Windows.

To start the SimpleHTTPServer "cd" into the directory which you want to be shared and run the following command:

Python 2

python -m SimpleHTTPServer 9000

Python 3

python3 -m http.server 9000

To access the shared files o to http://your_ip_address:9000.