How can one user download a file from another user's computer through a website?

I want to create a web application in which one user leaves his computer from a website and another user can download a file from his computer. The user will need to specify which file they would allow to download from their computer, but it should be completely between the two computers. A user who leaves his computer will look like a server to other users trying to download it. I do not want my own servers to handle all traffic. In addition, all this should be through the website, not the program.

A person leaving the computer will see a page with a status bar in which how many people are downloading his file, and he can click the cancel button at any time so that people can’t access his file.

I saw something called a "flash-java-socket" ... Can an attempt to complete my task?

http://www.google.com/search?q=flash+java+socket&ie=UTF-8&oe=UTF-8&hl=en&client=safari

+3
source share
6 answers

There are several obstacles:

  • Web pages cannot accept incoming connections
  • Browsers do not allow you to access the file system (well, traditionally)
  • Most users use NAT behind the router, so you need a port to access your computer.
  • Changing IP addresses is slightly larger than others.

, :

  • Flash Java .
  • flash/java, -, ( ).
  • Java- IP- , , .
  • , DynDNS, IP-.

, WebEx, Java , , , Java-. HTML/JavaScript , , .

+3

-, . IP-, , .

+2

, , , .

+1

. , " ", . :

:

  • static-ip DNS.
  • , , .
  • , , ( ).

, : "bitTorrent".

.

+1

- (, , ftp- ), .

Internet Explorer (?) ActiveX, , .

, ,

0

, , , Python, :

python -m SimpleHTTPServer

http://$HOSTNAME:8000/.

0

All Articles