libpeer icon indicating copy to clipboard operation
libpeer copied to clipboard

mdns?

Open richlegrand opened this issue 2 years ago • 3 comments

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!

richlegrand avatar Oct 18 '23 14:10 richlegrand

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

sepfy avatar Oct 22 '23 08:10 sepfy

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

richlegrand avatar Nov 01 '23 16:11 richlegrand

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

sepfy avatar Nov 05 '23 10:11 sepfy