Unless you have root, it's not possible. It took me a while to figure this out...
More: http://developerweb.net/viewtopic.php?id=5722
Maybe if the "SO_BROADCAST" is true, and there is a specified localAddress, then throw an exception in linux? This is not an issue in windows.
Thoughts?