If you want to share files over the LAN quickly and easily and do not want to mess with apache or any http daemon.

You just need to openup a terminal window and run this command:

python -c "import SimpleHTTPServer; SimpleHTTPServer.test();"

or

python -m SimpleHTTPServer

For example,in terminal navigate to Download folder and run the command:

wraith@wraith-desktop:~/Download$ python -c "import SimpleHTTPServer; SimpleHTTPServer.test();"
Serving HTTP on 0.0.0.0 port 8000 ...

People within your LAN,should get your /home/username/Download folder by type yourip:8000 in browser.

file_sharing1

You can also make this command more simpler by adding this line to .bashrc or .bash_aliases in your home folder(Ctrl+H to view hidden files).

alias LANshare='python -c "import SimpleHTTPServer; SimpleHTTPServer.test();"'

Now,reboot and you can run the command LANshare anywhere on your file system and share those files.

facebooktwittergoogle_plus