public InetSocketAddress getSocketInetAddress() {
    if (inetSocketAddress.isUnresolved()) {
      // note that this leaves the InetAddress null if the hostname isn't resolvable
      return new InetSocketAddress(inetSocketAddress.getHostString(), inetSocketAddress.getPort());
    } else {
      return inetSocketAddress;
    }
  }
Returns an InetSocketAddress for this host and port. An attempt is made to resolve the
host name but if resolution fails an unresolved InetSocketAddress is returned. This return
value will not hold an InetAddress, so calling getAddress() on it will return null.
geode-tcp-server/src/main/java/org/apache/geode/distributed/internal/tcpserver/InetSocketWrapper.java