Hi. UDP Broadcasting/Multi-casting is currently unsupported on many newer android devices by default without using certain Java hacks. I also tried hostname resolution but unfortunately not all routers seem to support it on iOS. Can anyone recommend me a method to locate devices on a local network using Corona’s Network lib alone? Or will I just have to shell out for a premium license so that I can use UDP Broadcast/Multicasting?
Bump. Also I should clarify that multicasting does work, but we need to acquire a MulticastLock in the case of Android devices. By default, Corona’s luasocket has no functionality to allow this (needs enterprise).
We don’t have a lot of experience with UDP. Maybe someone in the community has some advice. We are limited to what the Lua socket library gives us. network.* is for doing Web HTTP requests and won’t help you.
Rob
Sorry, I thought this to be the most appropriate subforum given that there’s no socket.* one. Anyways, could I put in a feature request with you guys for cross platform zeroconf/Bonjour support for local network discovery?
Oh, the forum is probably the right one. What I was saying is that UDP isn’t a protocol that we have a lot of experience with and that member’s of the community probably can help more than we can, even though UDP use isn’t very high.
If you want to request this feature visit: http://feedback.coronalabs.com
and see if there is a similar request already there and vote it up, if not create a new one and get the community to vote on it.
Rob
Can you point me to the java calls you’re talking about? broadcasting should be able to be done by the sockets library I think. Multicast means something very specific which you probably don’t want given the contextual clues in your posts btw.
Bump. Also I should clarify that multicasting does work, but we need to acquire a MulticastLock in the case of Android devices. By default, Corona’s luasocket has no functionality to allow this (needs enterprise).
We don’t have a lot of experience with UDP. Maybe someone in the community has some advice. We are limited to what the Lua socket library gives us. network.* is for doing Web HTTP requests and won’t help you.
Rob
Sorry, I thought this to be the most appropriate subforum given that there’s no socket.* one. Anyways, could I put in a feature request with you guys for cross platform zeroconf/Bonjour support for local network discovery?
Oh, the forum is probably the right one. What I was saying is that UDP isn’t a protocol that we have a lot of experience with and that member’s of the community probably can help more than we can, even though UDP use isn’t very high.
If you want to request this feature visit: http://feedback.coronalabs.com
and see if there is a similar request already there and vote it up, if not create a new one and get the community to vote on it.
Rob
Can you point me to the java calls you’re talking about? broadcasting should be able to be done by the sockets library I think. Multicast means something very specific which you probably don’t want given the contextual clues in your posts btw.
To anyone else having these same issues with receiving UDP broadcasts, please support my feature request to have multicastlock functions added which should allow those android devices to receive broadcast packets
To anyone else having these same issues with receiving UDP broadcasts, please support my feature request to have multicastlock functions added which should allow those android devices to receive broadcast packets