-
-
Notifications
You must be signed in to change notification settings - Fork 186
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
libpeer sample not working with TURN #101
Comments
Hi, could you try this branch first? thanks |
Hi, thanks for your reply. I have tried with branch https://github.com/sepfy/libpeer/tree/turn but still I observe the same issue. Following is the log ================================================================================================== DEBUG /home/test/njsa/libpeer-turn/libpeer/src/peer_signaling.c 93 MQTT_Publish succeeded. INFO /home/test/njsa/libpeer-turn/libpeer/src/peer_signaling.c 309 MQTT_PACKET_TYPE_PUBLISH DEBUG /home/test/njsa/libpeer-turn/libpeer/src/mdns.c 54 flag is not a DNS response
|
hi, Until now I have tried with two turn servers turn:turn.freeturn.net:3497 and turn:global.relay.metered.ca:80?transport=tcp. With both of these turn server I see the same behavior that relayed transport address is being allocated for both the peers but no response to the BIND request. Could you please suggest if this issues can be because of TURN server? also it would be great if you can share TURN server details with which libpeer sample app tested. |
Hi, what's the browser you used? I found firefox would occour the familiar error like 'ssl_handshake returned -0x7280'. You can try using google chrome. And there are some other scenes you may check out from issue #97 |
hi, I have used chrome. I don't see 'ssl_handshake returned -0x7280' error. Actual issue I see is no response after "send binding request to remote ip: 139.59.19.18, port: 64240" |
hi @topworldcoder, I am trying the environment similar to the 2nd one that you have mentioned in Also, we have tried increasing the AGENT_POLL_TIMEOUT to wait for enough time to receive the binding response, But we see that BINDING response is not at all arriving, even we confirm this in wireshark log. |
you can reply your email here, and I will send to you by [email protected] |
hello, In fact, I also tested TURN using metered, just like you, but I was able to connect successfully. I'm not sure if it could be a limitation of the router? |
hi @cy-jayasankar ,
But the other end did not receive it. |
|
@cy-jayasankar @sepfy @topworldcoder I also have similar printing, but it doesn't seem to affect the generation of candidates. The final send binding request to remote IP did not respond. |
Did you pull the latest code from libpeer? I have a good experence of it.
You can also check function 'agent_connectivity_check' from agent.c and add some debug logs. PS. you can refer to agent.c at my repository: |
Thank you very much for your suggestion. I will try debugging libpeer. I'm not sure if there's something wrong with my coturn. |
@zelzmz You can visit Coturn's log to find the exact reason, which may be found in '/var/log'. |
Thank you very much. After listening to your feedback, I tried to debug Coturn and it can now relay traffic normally. |
hi,
I am trying to run libpeer sample examples/generic on Ubuntu. I could get the sample working when both the peers are connected to same network/router. But when two peers are connected to two different networks, sample is not working.
I have tried configuring turn server credentials in main.c file. Also downloaded https://sepfy.github.io/webrtc/?deviceId=12345 code locally and configured turn credentials in iceServers in the downloaded html file. But sample did not work.
Observation from wireshark logs on both the sides is as below
Can you please provide details on how to run the sample with turn server configurations?
The text was updated successfully, but these errors were encountered: