Answer the question
In order to leave comments, you need to log in
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)
Answer the question
In order to leave comments, you need to log in
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.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question