Hi Marco,
Actually I am developing a java program that should send a broadcast packet out of all its interfaces to the other machines attached to it by using the subnet broadcst address for each interface. When those remote machines receive the packet, they return their IP address and some information related to them.
UPDATE: I have one more problem, when I try to get the broadcast address using interfaceAddress.getBroadcast(), it gives me 255.255.255.255. This should return the subnet broadcast address like 10.0.0.3 (subnet mask /30, network id 10.0.0.0, hosts are connected as 10.0.0.1, 10.0.0.2)