public static InetAddress readInetAddress(DataInput in) throws IOException {

    InternalDataSerializer.checkIn(in);
    InetAddress address = StaticSerialization.readInetAddress(in);

    if (logger.isTraceEnabled(LogMarker.SERIALIZER_VERBOSE)) {
      logger.trace(LogMarker.SERIALIZER_VERBOSE, "Read InetAddress {}", address);
    }

    return address;
  }
Reads an instance of <code>InetAddress</code> from a <code>DataInput</code>. The return value
may be <code>null</code>.

@param in the {@link DataInput} to read from
@return the deserialized <code>InetAddress</code>

@throws IOException A problem occurs while reading from <code>in</code> or the address read
        from <code>in</code> is unknown

@see InetAddress#getAddress
geode-core/src/main/java/org/apache/geode/DataSerializer.java