WebRTC calls without using STUN/TURN or Signaling servers
This is a demo for setting up a WebRTC call using only a nginx server on the backend. It will work only if both users are on an IPv6 network. Connecting to most Indian mobile internet networks should fulfil that prerequisite. Please read this post for more details.
Choose whether you are initiating the call or responding to a request from someone
Both sides will have to refresh page and start the process again to retry the connection process
Gather info needed for seting up the WebRTC connection
Detailed Steps for initiating call
- Copy and send Local connection description to the person you want to call, using sms or other means.
-
Ask them to select
Answer Call
button and follow the steps to generate and share connection description on their end. -
Paste connection description shared by them in the second text area and
click on the
Add Remote Description
button. - Wait for the other person to complete similar steps on their end
- UI for text and audio chat will appear once they have completed setup. Check console logs in case of errors.
Local connection description
Set remote connection description
Gather info needed for seting up the WebRTC connection
Detailed Steps for answering to call setup request
- Enter the connection description shared by caller in the first text area.
- Copy and send connection description generated in the second text area to the person calling you, using sms or other means.
-
Ask them to paste connection description shared by you in the second
text area and click on the
Add Remote Description
button. - Wait for the other person to complete setup steps on their end
- UI for text and audio chat will appear once they have completed setup. Check console logs in case of errors.
Set caller connection description
Generate local connection description
Text Chat
Messages