:)

Friday, April 24, 2009

Ditch Network Sharing

I always get into trouble when sharing files across computers. Windows share sucks and when I have Windows and Linux cluster, Samaba just can not do it....
I always use to think that there should be some HTTP based solution to it as HTTP is proven protocol for file transfer, so I found a way and luckily dam easy way.

All you need is to install python on your system, even if you are not a coder, 20 - 30 MB setup of Python wont bite you. After you install it (generally Linux has it by default), go to command line, change directory to the directory you want to share and write:
Python -m SimpleHTTPServer
thats it. Now you have exposed that folder on port 8000. Open web browser from a computer on the network, open http://your-ip:8000 and you can download any file from that computer you want :)

2 comments:

l0nwlf said...

Didnt worked in my case :

Serving HTTP on 0.0.0.0 port 8000 ...

this line was coming like forever :(

But I'm quite interested into HTTP sharing ..waiting for ur reply

Hasanat Kazmi said...

Yeh thats the point, you have set a HTTP server and shared those files...
Now if you know your IP (for example my IP is 192.168.1.105 ), you can visit http://192.168.1.105:8000/ on any computer on the network and download the file you want.
If you have open IP, you can defined download files from any computer in the world.
You are on the right track

Blog Archive

My Associations

Volunteer Internet Environment Watch (VIEW)
(which is no more volunteer based)

Sahana - Disaster Management System
Sahana is my Google Summer of Code Project (2009)