code: public void setLocalSubnet(String localSubnet) {
          IPAddressType currSubnetType = IPAddressCompare.getAddressType(localSubnet);
          this.currSubnetType = currSubnetType;
          this.localSubnetString = localSubnet;
  
          if (currSubnetType == IPAddressType.IPV4) {
              this.localSubnet = IPAddressCompare.addressToByteArrayV4(localSubnet);
          } else if (currSubnetType == IPAddressType.IPV6) {
              this.localSubnet = IPAddressCompare.addressToByteArrayV6(localSubnet);
          }
      }
docs: Set the local network address
  
  @param address the IP subnet as character string.