Share Files from Laptop to Phone using Python HTTP Server

Опубликовано: 07 Август 2026
на канале: Aditya Pai Thon
18,346
260

In this video we're going to see how you could share files in your local area networks(LANs) using Python.

httpserver is a useful Python Utility that helps us in accomplishing this.
Using the private ip address of the host server we can access the files shared through any device within the local network.

The command used : py -m http.server [OPTIONAL_PORT_NUMBER]

This would then launch the server @ : http://localhost:8000/

Now to access the contents using some other devices like your PC or Android Phone find the ip address of your laptop or the host system by typing in "ipconfig" in the command prompt.
Then look for the ipv4 address, it will be of the form 192.168.x.x
Type in this ip address in your phone followed by a colon (:) and port number and then you could instantly access files from your laptop into your phone!

This video is about:
python file server
python simplehttpserver
python simplehttpserver upload file

simplehttpserver python 3

python simplehttpserver directory
python send file to another computer
python simplehttpserver windows