WebRTC does not define how two peers exchange connection details. Normally that job belongs to a WebSocket or HTTP signaling service.
For debugging, copy and paste is enough:
Device A: Offer + ICE -> invitation
Device B: invitation -> Answer + ICE -> answer code
Device A: apply answer -> connect







