ajax - Instant Transfer file between 2 browser clients via TCP -


is possible create website makes possible scenario:

user logs website, uploads file making direct tcp connection user b within same site @ same time downloading file. without passing file trough server.

how make user b listen through browser?

would violate "same origin policy"?

point use browser , no other software p2p clients.

is crazy idea possible?

i doubt webrtc covers need.

you have 2 issues:

  • b, if running web browser, cannot open port receive inbound connection
  • even if b able that, have face nat traversal issues.

the solution use/implement relay server:

  1. a opens outbound http/websocket connection relay server
  2. b opens outbound http/websocket connection relay server
  3. a sends data relay server on outbound channel (http post instance)
  4. b reads data relay server on response (to http instance)

easier said done.... (and yes feature of advanced p2p networks jxta, xmpp, skype..., , yes unfortunately need intermediate server)

check ice specification of 'how nat traversal'


Comments

Popular posts from this blog

How do you change vbulletin's home page to the forums instead of the default (CMS or Activity Stream)? -

c++ - Troubles when compiling phash program -