SEARCH

How-To Geek

Serve Up Files Easily With the Python SimpleHTTPServer

Have you ever needed to quickly share a folder with another machine? Rather than deal with samba, nfs, or apache, you can just run a simple command instead.

python -m SimpleHTTPServer 8080

You can then connect from another machine on the 8080 port like this:

http://ipaddress:8080/

And you’ll be able to download any of the files from the directory.

Lowell Heddings, better known online as the How-To Geek, spends all his free time bringing you fresh geekery on a daily basis. You can follow him on if you'd like.

  • Published 07/16/10

Comments (1)

  1. Alex

    Uau, awesome advice!

    Many thanks!

Enter Your Email Here to Get Access for Free:

Go check your email!