Creating a HTTP Server to Share Files Using Just Two Command Lines
Suppose you want to share the files located in the “~/share” folder. In terminal, type:
cd ~/share
Now, open the python terminal and write:
import SimpleHTTPServer
SimpleHTTPServer.test()
Find out your ip using this site:
Note that the server is running on port 8000. So when you share your IP, go as follows:
http://[your-ip-here]:8000
</p>