Skip to content

Fix P2P connection: initialize ICE servers and add fallback public ST…#28

Open
AMEST wants to merge 1 commit into
masterfrom
fix/p2p-ice-servers
Open

Fix P2P connection: initialize ICE servers and add fallback public ST…#28
AMEST wants to merge 1 commit into
masterfrom
fix/p2p-ice-servers

Conversation

@AMEST

@AMEST AMEST commented Jun 14, 2026

Copy link
Copy Markdown
Owner

…UN servers

  • Always initialize iceServers array even if turnSettings are missing
  • Add array of reliable public STUN servers as fallback:
    • Google STUN servers (stun1-4.l.google.com)
    • Mozilla STUN server
    • stunprotocol.org server
  • If no TURN config exists, use only public STUN servers
  • If TURN config exists, use public STUN servers first, then TURN servers
  • Add console logging for debugging ICE server configuration
  • This fixes P2P connection establishment without requiring 'force turn' workaround

…UN servers

- Always initialize iceServers array even if turnSettings are missing
- Add array of reliable public STUN servers as fallback:
  - Google STUN servers (stun1-4.l.google.com)
  - Mozilla STUN server
  - stunprotocol.org server
- If no TURN config exists, use only public STUN servers
- If TURN config exists, use public STUN servers first, then TURN servers
- Add console logging for debugging ICE server configuration
- This fixes P2P connection establishment without requiring 'force turn' workaround
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant