sepfy / libpeer

WebRTC Library for IoT/Embedded Device using C
MIT License
802 stars 108 forks source link

mdns? #46

Open richlegrand opened 8 months ago

richlegrand commented 8 months ago

Hello, I'm using an esp32-s3 with OV2640 camera. I have the demo working when I connect from within the local network. (pointing browser to https://sepfy.github.io/webrtc/?deviceId=esp32-xxxxxxxxxxxxxxxxxx) --- awesome :)

One problem I'm having is when I try to connect from outside the local network, I get the console message:

WARN /home/rich/ringtail/libpeer/src/ports.c 118 ESP_ERR_NOT_FOUND: Host was not found!

Which says that it's having trouble resolving the mdns address, which I guess isn't too surprising... I'm wondering the best way to try to track down what's going wrong in the connection (?)

thanks!

sepfy commented 8 months ago

Yes. when you are using the different local area network, mdns is not available. In your case, was the connection successful? the ice candidate paring (connection of peer to peer) is through the STUN protocol. I will monitor STUN packets to check the connection status

richlegrand commented 8 months ago

It wasn't able to connect. What is the best way to debug? By the way, did you write your own ICE and SCTP code?

thanks

sepfy commented 7 months ago

yes. I just implemented ice and sctp simply. For Linux os, i am using the USRSCTP. I think the best way is using the wireshark to check the STUN packet has been received and whether the packet is blocked