Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Web udp. #14

Open
Maxai2 opened this issue Mar 3, 2022 · 1 comment
Open

Web udp. #14

Maxai2 opened this issue Mar 3, 2022 · 1 comment

Comments

@Maxai2
Copy link

Maxai2 commented Mar 3, 2022

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

@xenoken
Copy link
Owner

xenoken commented Mar 22, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants