Can I use WebRTC to open a UDP connection?

前端 未结 2 2026
醉梦人生
醉梦人生 2020-12-14 22:45

We need send data to our users\' devices using the TFTP protocol, which is a simple FTP-like protocol that works over UDP.

Since we can\'t open a UDP socket using ja

2条回答
  •  北海茫月
    2020-12-14 23:14

    No. There are too many security issues allowing WebRTC to send to a random address/port - we have to make sure it doesn't work as a DDOS platform, so we require the target to implement ICE as an implicit permission to send data, and we also don't allow sending arbitrary data, just SRTP mediastreams and data in DataChannels (over SCTP over DTLS over UDP+ICE).

提交回复
热议问题