Serve your current directory using a simple webserver & python

Simply type this in your Linux command line (assuming Python is installed, and it usually is on many Linux desktops).

python -m SimpleHTTPServer &

This will launch a very simple web server in the directory from which the command was run, and will establish that directory as root. You can then access it from your local machine by typing in this URL in your browser:

By default, it starts the web server on port 8000 but that can be changed using:

python -m SimpleHTTPServer 9090

which starts the server on port 9090, and can be accessed via the browser or any HTTP client using:

If you want to access these files from outside your home network, I’d recommend SSH with a local port redirect instead of raw port forwarding, which I do talk in a roundabout way here.