Skip to content

Turn not working #90

@Alan5142

Description

@Alan5142

Checklist

  • Checked the issue tracker for similar issues to ensure this is not a duplicate
  • Read the documentation to confirm the issue is not addressed there and your configuration is set correctly
  • Tested with the latest version to ensure the issue hasn't been fixed

How often does this bug occurs?

always

Expected behavior

When using a TURN server, it should allow the communication between both peers.

Actual behavior (suspected bug)

I have tested the esp_peer component through IDF component manager. My peer is a custom desktop console app (built with webrtc.rs), and overall works fine when both of them specify peer_cfg.ice_trans_policy = ESP_PEER_ICE_TRANS_POLICY_ALL (RTCIceTransportPolicy::All in the rust side). However, when I specify ESP_PEER_ICE_TRANS_POLICY_RELAY or when any of them is in a different network, it no longer works.

I am using Cloudflare TURN service. I also tested with metered.ca TURN server

I attach part of the logs after I received a ESP_PEER_STATE_PAIRING signal. After that, I receive a ESP_PEER_STATE_CONNECT_FAILED event. I received tons of those logs before receiving the CONNECT FAILED event.

Error logs or terminal output

I (86007) AGENT: 0 Send binding request (cand:0) local:192.168.100.232:53554 remote:172.26.144.1:60995 id:6fe91e6c2322a8846df77827
I (86010) AGENT: 0 Send binding request (cand:0) local:192.168.100.232:53554 remote:192.168.177.1:51326 id:1e63da772a81f9c13740f7d1
I (86021) AGENT: 0 Send binding request (cand:0) local:xxx.xxx.xxx.xxx:53554 remote:yyy.yyy.yyy.yyy:25248 id:621f7dc2473fade00ecfd396
I (86032) AGENT: 0 Send binding request (cand:0) local:xxx.xxx.xxx.xxx:53554 remote:yyy.yyy.yyy.yyy:25148 id:45480065562666204bf4e964
I (86043) AGENT: 0 Send binding request (cand:0) local:xxx.xxx.xxx.xxx:53554 remote:yyy.yyy.yyy.yyy:15130 id:57f7686d7936f3746ee7eb07
I (86055) AGENT: 0 Send binding request (cand:0) local:xxx.xxx.xxx.xxx:53554 remote:yyy.yyy.yyy.yyy:15645 id:55ee4c0b44c1aa5d4f7df387
I (86066) AGENT: 0 Send binding request (cand:0) local:xxx.xxx.xxx.xxx:53554 remote:yyy.yyy.yyy.yyy:25248 id:16dc99605368c1de0aa98cb7
I (86078) AGENT: 0 Send binding request (cand:0) local:xxx.xxx.xxx.xxx:53554 remote:yyy.yyy.yyy.yyy:25148 id:314d8d5d5964648b6f641684
I (86089) AGENT: 0 Send binding request (cand:0) local:xxx.xxx.xxx.xxx:53554 remote:yyy.yyy.yyy.yyy:15130 id:09f4ba361af7c2e06b1623bb
I (86101) AGENT: 0 Send binding request (cand:0) local:xxx.xxx.xxx.xxx:53554 remote:yyy.yyy.yyy.yyy:15645 id:127e9dbf19cb4497662fbe85
I (86112) AGENT: 0 Send binding request (cand:0) local:104.30.145.172:51354 remote:104.30.150.84:22689 id:0945b15a232c184841d5cd1c
I (86123) AGENT: 0 send indication bind request

Steps to reproduce the behavior

  1. Create a minimal setup of ESP_PEER with an external signal server.
  2. Connect either the ESP32 or the peer to another network
  3. Try to connect both of them

Project release version

v1.2.4

System architecture

Intel/AMD 64-bit (modern PC, older Mac)

Operating system

Windows

Operating system version

Windows 11

Shell

PowerShell

Additional context

I am using a ESP32 S3

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions