Yuriy Zisin Development as a lifestyle

9Mar/090

Broadcast messaging

I've never tried to send and receive broadcast messages before, so I faced one fun problem. It's easy to open UDP socket and send broadcast message and there are lot examples you can find. It's also easy to find out how to catch the broadcast message. But what I did - I run sender and receiver code on the same machine and was trying to make it work. I failed just because the broadcast packet doesn't get returned to the sender machine. So, save you time - use different machines for testing broadcasts ;-)

Tagged as: , No Comments