docs: public static String getHostName(SocketAddress socketAddress) {
          if (socketAddress == null) {
              return null;
          }
  
          if (socketAddress instanceof InetSocketAddress) {
              InetAddress addr = ((InetSocketAddress) socketAddress).getAddress();
              if(addr != null){
                  return addr.getHostAddress();
              }
          }
  
          return null;
      }