func GetHostPartIP(ip net.IP, mask net.IPMask) (net.IP, error) {
    // Find the effective starting of address and mask
    is, ms, err := compareIPMask(ip, mask)
    if err != nil {
        return nil, fmt.Errorf("cannot compute host portion ip address because %s", err)