Sharing files in a network -the easy way

:satellite: Manjaro comes with python 3 which makes it easy to share files rapidly in your network.

You can share with:

  • OSX,
  • Windows
  • Android

it will work on all platforms.

This is for the situation that you need to share something fast and is not advisable as part of your regular infrastructure.

Open a terminal on the computer that contains the files you want to share and navigate to the directory where the files you want to share are like ˝/home; then type:

python -m http.server

Now go to the computer, phone or tab that should receive the files and open a browser.
In the url field of the browser you type http://the_IP_of the_sharing_computer:8000

To find the IP of the computer you want to share from you type:

ip addr

Something like this:

This will list all the files in the directory of the sharing computer.:

Now you can download or open the files. - It is as easy as that.

Since you might want to share files from other computers with your Manjaro computer; they may have Python2
(This is the case for Debian,, Mageia and several other distros. In Windows you need to install Python first)

Here you have to write a different command.
Open a terminal and write:

python -m SimpleHTTPServer

Go to your Manjaro computer and open the url as described above and you will have access to the files.

If you want to use another port than the default 8000 - say 9000 - you can enter it like this:

python -m http.server 9000

Once you have shared the files; just stop the server with CTRL+c

It is as easy as that!


Today I've used this method to help me to install an AUR package, how? I was trying to install a package that has more than 4Gb of files, and I was having several problems during the building step, and every time I had such problems I had to download every file again, there was one big file that alone had 3.5Gb, so I downloaded it separately and edited the PKGBUILD file to point to my local file already downloaded instead the web link, at first I was trying to use the "file:///path/to/file" format but it causes an error message of invalid file/path format. so I created a local http server using this post method and used the link as "192.168.0.*:8000/path/to/file", and it worked!


Good show!

Should this tutorial be wikified?

  • Yes this tutorial should be a Wiki
  • No this tutorial should not be a Wiki

0 voters

it has not been decided, which wiki we will use in the future: the old wiki (on a new server) or the wiki add-on in the discourse forum.
at the moment, it looks like phil wants to transfer the old wiki to a new server. then, the certificate problem should be solved.


Thanks! Good news there.

The question is still good though because the old wiki doesn't contain this tutorial. Now I can add it myself....

Many thanks!
This is a good quick'n'easy solution when you need access to your files without having to resort to setting up samba/nfs etc.

1 Like

i do not know how this will be handled.

i myself have converted an article from the old wiki to the wiki in this forum. all changes would need to ported to the old version.
regardless which wiki will be used in the future, some articles have to be ported to the new wiki.

i managed to convert (most parts of) the code of the old wiki into code for wiki in this forum: look at the bottom of this post:
maybe something like this could be done to the great tutorials in this forum?
we will have start testing as soon as a wiki gets chosen.

Ah I presumed that Phil wanted to continue the old Wiki from your answer - but naturally it is an option to move the old wiki to a place that works - as an archive - and continue with further Wikies here in discourse.

I can add my tutorials in the traditional Wiki style - In the new forum Wiki - I dunno.

you are right.

i do not know what phil will do with the old wiki: keep it as an archive and use it as a the main wiki. we will see.

I have added a tutorial for adding a permanent file server (quick'n easy) here

Nice find. :slight_smile:


Wiki updated


It is hard to keep up with the updates to python regarding the permanent file server so I here is another way to do it:

python -c 'from twisted.web.server import Site; from twisted.web.static import File; from twisted.internet import reactor; reactor.listenTCP(8000, Site(File(".")));'

I have added it to the wiki (but it needs some tidying up - do feel free...)

1 Like

Wiki updated to reflect that you also need to install python-service-identity for the permanent file server.

Forum kindly sponsored by