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

Receiving broadcast on Android #22

Open
RickPoleshuck opened this issue Jun 12, 2023 · 3 comments
Open

Receiving broadcast on Android #22

RickPoleshuck opened this issue Jun 12, 2023 · 3 comments

Comments

@RickPoleshuck
Copy link

I am able to receive udp broadcasts packets on my phone from a flutter app using UDP using the Android app NetPal. (I highly recommend this app for debugging issues network issues on an android.)
I am also able to receive unicast packets using UDP on my Android Flutter app.
However, I am not able receive udp packets that are broadcast with my Flutter app using UDP. My best guess is that I am missing a permission in my manifest.
Any suggestions?

@mdev88
Copy link

mdev88 commented Sep 14, 2023

I am also having issues receiving broadcasts with sent witht his package (in Android). Any further info about this issue?

@RickPoleshuck
Copy link
Author

I am also having issues receiving broadcasts with sent witht his package (in Android). Any further info about this issue?

I wanted to use UDP to send out a broadcast to the whole LAN at one time. I finally got it working, except that one of my switches on the LAN did not forward the broadcast UDP packet. I decided that UDP broadcast is just not useful with modern hardware. I switched to using the network_tools method scanDevicesForSinglePort which takes about one second to scan all the ports on my LAN. I know this won't work for every use case, but UDP broadcast is just not useful unless you manage every LAN that your program will be used on.

@mdev88
Copy link

mdev88 commented Sep 14, 2023

Interesting... thanks for the info.

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