The problem is that there is, IIRC, no portable way to determine netmasks or broadcast addresses or network addresses in any language. Under most Unices, SIOCGIFNETMASK would work, but I doubt that works under Windows, nor do I know if Java has any such ioctl construct.
_________________________
Bitt Faulk