udp icon indicating copy to clipboard operation
udp copied to clipboard

Web udp.

Open Maxai2 opened this issue 3 years ago • 1 comments

Hello. I see that this library not work on web. But how can I send udp broadcast on port and listen the same port?

Maxai2 avatar Mar 03 '22 09:03 Maxai2

Hello @Maxai2, You are correct, due some dependencies, udp doesn't support the web platform for now. I'm not sure if I understand the question correctly, but broadcasting from port A and also listening on port A on the same network interface is not permitted at the socket level. But if you are trying to broadcast from port A of network interface NIC1 to port A of network interface NIC2 on another machine (or even the same machine as long as NIC1 and NIC2 are different), it is possible.

xenoken avatar Mar 22 '22 21:03 xenoken