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:

http://www.whatismyip.com/

Note that the server is running on port 8000. So when you share your IP, go as follows:

http://[your-ip-here]:8000

</p>