Did you set SO_BROADCAST?

Suggestion: send the broadcast out to 255.255.255.255 rather than the official broadcast for the current subnet. This requires less interaction from the user. Routers aren't going to pass the broadcast off the subnet anyway... just makes coding (and using) a bit simpler.
_________________________
--The Amigo