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:
- a opens outbound http/websocket connection relay server
- b opens outbound http/websocket connection relay server
- a sends data relay server on outbound channel (http post instance)
- 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
Post a Comment