docs: public static String getHost(InetSocketAddress addr) {
      try {
        Method getHostStringMethod = InetSocketAddress.class.getMethod("getHostString");
        return (String) getHostStringMethod.invoke(addr);
      } catch (NoSuchMethodException e) {
        // noop
      } catch (IllegalAccessException e) {
        // noop
      } catch (InvocationTargetException e) {
        // noop
      }
      return addr.getHostName();
    }