Skip to content

feat: add ice-tcp and mdns-local-peers examples#798

Open
nightness wants to merge 2 commits intowebrtc-rs:masterfrom
Brainwires:feat/tcp-ice-mdns-examples
Open

feat: add ice-tcp and mdns-local-peers examples#798
nightness wants to merge 2 commits intowebrtc-rs:masterfrom
Brainwires:feat/tcp-ice-mdns-examples

Conversation

@nightness
Copy link
Copy Markdown

Summary

Two new example programs demonstrating transport alternatives:

examples/ice-tcp/ice-tcp.rs — TCP ICE candidates (RFC 6544)

  • Creates a PeerConnection using ICE over TCP instead of UDP
  • Useful for environments where UDP is blocked (corporate firewalls, some VPNs)
  • Demonstrates how to configure RTCSettingEngine::set_ice_tcp_mux()

examples/mdns-local-peers/mdns-local-peers.rs — mDNS local peer discovery

  • Connects two peers on the same LAN using multicast DNS
  • No STUN/TURN server required for local network use cases
  • Demonstrates RTCSettingEngine::set_ice_multicast_dns_mode()

Test plan

  • cargo build --example ice-tcp
  • cargo build --example mdns-local-peers
  • Run both examples end-to-end on a local network

🤖 Generated with Claude Code

nightness and others added 2 commits April 1, 2026 11:48
- feat(tcp-ice): TCP ICE candidates (RFC 6544) example — demonstrates ICE over TCP for firewalls that block UDP
- feat(mdns): mDNS peer discovery example — demonstrates local peer discovery without a STUN server using multicast DNS

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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