hnasr / javascript_playground

Javascript playground tutorials
1.06k stars 948 forks source link

Question #74

Open 365AbdurRaheem opened 6 months ago

365AbdurRaheem commented 6 months ago

My question is that how can i make a chat app using webrtc that work on wide area network. The provided code by Sir @hnasr is only applicable on same device on different browsers. What changes should be done in order to establish communication between two different devices?

deepak-singh19 commented 5 months ago

Hey @365AbdurRaheem as he already told us if you have to make a connection between two peers who are in different sever or router or device whatever you want to say then you need to use STUN server or TURN server as per your NAT configuration. There are lots of free STUN servers that you can use. I hope this answers you question.