A
A
Alexander Fedoruk2016-06-04 23:11:51
JavaScript
Alexander Fedoruk, 2016-06-04 23:11:51

How to implement a browser-to-browser socket connection?

It's simple (but complicated): do you need to implement a browser-to-browser socket connection?
If so, how?
Thank you.

Answer the question

In order to leave comments, you need to log in

5 answer(s)
A
Alexey, 2016-06-04
@AlexSaFF

Look at the article - https://habrahabr.ru/post/255833/

V
Vladimir Grabko, 2016-06-04
@VGrabko

Via websocket server or WebRTC

#
#algooptimize #bottize, 2016-06-04
@user004

Through an intermediate service, if there is no external ip ...
Although with an external one, by default, there are no rights to listen to the port.

R
Rou1997, 2016-06-04
@Rou1997

On a local network, for example, if both computers are connected to the same router, you can do it without problems at all, and without setting anything up, but one of the browsers must be a TCP server (or WebSockets server), it's easier "application-application" or "application- browser".

S
Slava Vitrenko, 2016-06-05
@bagiroff777

In a typical browser, there is no way to create a socket server, only an intermediate service. You can use p2p, but this is only in tor and analogues

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question