matallui / artico

Artico - WebRTC made simple
https://artico.dev
MIT License
27 stars 2 forks source link

WebRTC: ICE failed, add a TURN server and see about:webrtc for more details #14

Open dukizwe opened 1 week ago

dukizwe commented 1 week ago

No matter what I do, I keep encountering the error message WebRTC: ICE failed, add a TURN server and see about for more details even after adding a TURN server:

Here is how I have configured the TURN server:

const options: Partial<ArticoOptions> = { 
          debug: 4,
          rtcConfig: { 
                    iceServers: [{ urls: 'stun:[stun.l.google.com:19302]' }] 
          } 
};

I have also reviewed the example project, but I couldn't find any specific TURN server configuration there, yet it still works. How did you manage to get it working?

matallui commented 1 week ago

Hey @dukizwe! Can you provide a reproduction example? Do you have a github repo with the app you're testing with or something?

dukizwe commented 1 week ago

@matallui here's the working demo:

https://github.com/dukizwe/artico-demo/blob/main/src/app/call/demo.tsx

dukizwe commented 5 days ago

@matallui any feedback ??

matallui commented 5 days ago

@dukizwe Do your network conditions allow for NAT traversal? Not all networks will allow this (e.g., corporate networks usually don't), meaning a peer located outside a corporate network wouldn't be able to call someone inside that network (not without a TURN server, which you don't have configured).

matallui commented 5 days ago

I deployed your app and was able to call from my phone (Verizon network) to my laptop on the home Wi-Fi. So... I can only assume that your network conditions don't allow NAT traversal and, therefore, you'd have to use a TURN server.