PDA

View Full Version : [all variants] Sharing a file through WAN



status001
May 11th, 2009, 03:59 PM
I use a soft name HFS(HTTP File Server) in Windows to share my files to another user in WAN/internet. Here you can see this soft
http://www.rejetto.com/hfs/?f=dl

I want a similar soft in Ubuntu. I don't want to upload my file on any web server. And with HFS, I can also share my files/folders on LAN.

Peter09
May 11th, 2009, 04:16 PM
ssh is the most often used file share in Ubuntu. You need to install openssh-server and the rest is history - well nearly :)

dmizer
May 11th, 2009, 04:33 PM
Perhaps you would be interested in this then: http://www.rejetto.com/forum/?topic=4469

Alternatively, you could use any number of possibilities including ssh/scp as suggested by Peter, FTP as outlined in my signature, http via apache or lighttpd, among others.

status001
May 13th, 2009, 11:09 PM
I rather found the easiest way to do this. Problem is I don't know about the security issues. But it solved my problem. You have to have real IP to do this.

open terminal, change the directory which one you want to share.
write:


$python -m SimpleHTTPServer # requires Python 2.4

or


$python -c "from SimpleHTTPServer import test; test()" # older Python

or


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


**Browse on:

http://localhost:8000 #on your localhost

http://your.real.ip:8000/ #on internet