Fast and easy Python LAN server

pythonLO

This is a very simple tip, but it’s very useful when you want others to access your files, or you want to transfer files easily. Just open the terminal, navigate to the folder you want to serve, and then type:

$ python -m SimpleHTTPServer

The server will be created in the IP of your machine.

To find your IP, type

$ ifconfig -all

or

$ ip a

If you’re using Python 3.x, you should instead open the server with

$ python -m http.server

Your files will be displayed when you access the website using your IP, so you can access it from other machines in the network. Here’s an example of what you’ll see:

exp