T
T
tundramani2021-03-21 22:19:57
P2P
tundramani, 2021-03-21 22:19:57

How often are both callers behind NAT?

I want to try to make a p2p connection using peerjs,

but in an article on Habré I read:

If both callers are behind NAT, the call will fail. (Why? Read here habr.com/ru/company/yandex/blog/419951)

https://habr.com/ru/post/468705/

how critical is this?
I would like to use this library without having to raise the server

goal - video chats for teachers and students

Answer the question

In order to leave comments, you need to log in

3 answer(s)
G
GavriKos, 2021-03-21
@GavriKos

In 99% of cases.

K
KoreanGuy, 2021-03-22
@KoreanGuy

Sitting behind NAT does not mean that p2p cannot be established. NAT is different. In most cases, WebRTC (I don’t know what peerjs is, but it uses WebRTC under the hood anyway) in most cases it easily bypasses NAT and establishes a p2p connection. But to lift the server all the same it is obligatory. NECESSARILY. For any production application. It's not hard. There are many ready-made proven solutions that you just need to configure.

S
Sanes, 2021-03-22
@Sanes

https://apps.nextcloud.com/apps/spreed

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question