Easily Share Files on Your Local Network

At times I get frustrated because I can't easily share files on my local network without jumping through several hoops, like setting up Nextcloud, Samba, sending the file over Internet, or similar. A quick and easy way to share some files without any authentication is setting up a super simple Python HTTP server. Python is most likely already installed on your GNU/Linux distribution.

Start a Simple Python HTTP Server for Sharing Files Locally on Your Network

  1. Open a terminal window.
  2. Navigate to the directory you want to share.
  3. Start the Python HTTP server:

    python3 -m http.server
  4. Visit http://<your_ip_address>:8000 in a web browser from another PC/device to find the files shared. Use ifconfig or "ip address" in your command line on the computer you run the HTTP server on to find your IP address.
  5. Download the files you want using the web browser.
  6. Back in the terminal, press Ctrl+c to shut down the server.

You may have to open up port 8000 for TCP connections on your firewall for other computers to be able to access the files you're sharing.

No Uptime

No Uptime

I'm the only author on this blog and I do all the administration stuff. I guess that makes me the administrator.
The Internet