udp
udp copied to clipboard
Web udp.
Hello. I see that this library not work on web. But how can I send udp broadcast on port and listen the same port?
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.