Android Question Get UDP Broadcast crash on B4A

max123

Well-Known Member
Licensed User
Longtime User
Hi all,

this Snippet works well on B4J. On B4A this works in Debug mode only but crash in Release mode on my Nexus 7 SE. ?
https://www.b4x.com/android/forum/threads/udp-broadcast-address.75694/

Another question, on B4J and on B4A Debug mode it return 192.168.178.255, but broadcast IP Address is not in range 234.x.x.x - 239.x.x.x ?
What I need is to send UDP audio stream from ESP8266 to more Android and Desktop devices, so I need to discover my network broadcast address, or maybe I misconfused with multicast?
Maybe is my FritzBox 7530 that reroute it ?

Any help is appreciated.

Many thanks

Here the B4A log in release mode:
 
Last edited:

Erel

B4X founder
Staff member
Licensed User
Longtime User
It needs the android.permission.INTERNET permission. It will be added if you add a UdpSocket object.

You can also add it with AddPermission in the manifest editor.

Another question, on B4J and on B4A Debug mode it return 192.168.178.255, but broadcast IP Address is not in range 234.x.x.x - 239.x.x.x ?
The broadcast address looks correct. Try it.
 
Upvote 0

max123

Well-Known Member
Licensed User
Longtime User
Ok, that worked, many thanks Erel , and for my other question you think it is right or I'm wrong?

Many thanks
 
Last edited:
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…