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
In questa pagina del sito puoi guardare il video online Share Files from Laptop to Phone using Python HTTP Server della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Aditya Pai Thon 21 dicembre 2018, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 18,305 volte e gli è piaciuto 261 spettatori. Buona visione!