code: public void setLocalNetwork(String localNetwork) {
          IPAddressType currNetworkType = IPAddressCompare.getAddressType(localNetwork);
          this.currNetworkType = currNetworkType;
          this.localNetworkString = localNetwork;
  
          if (currNetworkType == IPAddressType.IPV4) {
              this.localNetwork = IPAddressCompare.addressToByteArrayV4(localNetwork);
          } else if (currNetworkType == IPAddressType.IPV6) {
              this.localNetwork = IPAddressCompare.addressToByteArrayV6(localNetwork);
          }
      }
docs: Set the local network address
  
  @param address the IP address as character string.