SimpleHTTPServer

It's not about programming language. It's just a tool.
We need to share files in LAN or from computer to cell phones. We can use ftp or file share. but using SimpleHTTPServer to share files is mush more easy.
For example: There a file video.mp4 in the dir /home/willow/share and I want to share it to my cell phone. All I need to do is:

  1. go to that dir:
    cd /home/willow/share
    
  2. start the SimpleHTTPServer:
    python2 -m SimpleHTTPServer 8000
    
    or
    python -m SimpleHTTPServer 8000
    
  3. find out the ip address of my computer:
    ip addr
    
    or :
    ifconfig
    
  4. Visit http://myipaddress:8000 in my cell phone.

results matching ""

    No results matching ""