anchor.diff:  <%@ page import="org.jivesoftware.openfire.session.LocalSession" %>
   <%@ page import="java.util.stream.Collectors" %>
   <%@ page import="java.util.*" %>
  +<%@ page import="java.net.InetAddress" %>
   <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
   <%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
   <%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
  
positive.code:     // Sort them by remote peer.
      final Map<String, Set<IncomingServerSession>> inByHost = inSessions.stream().collect(Collectors.groupingBy(e -> {
          try {
              return e.getHostAddress() + " / " + e.getHostName();
          } catch (Exception t) {
              return "Invalid session/connection";
          }
  
negative.code: 
      final Map<String, Set<OutgoingServerSession>> outByHost = outSessions.stream().collect(Collectors.groupingBy(e -> {
          try {
              return e.getHostAddress();
          } catch (Exception t) {
              return "Invalid session/connection";
          }
      }, Collectors.mapping(e -> e, Collectors.toSet())));
  
      Set<String> allHosts = new HashSet<>();
      allHosts.addAll(inByHost.keySet());
      allHosts.addAll(outByHost.keySet());
      allHosts = allHosts.stream().map(address -> {
          try {
              return address + " / " + InetAddress.getByName(address).getCanonicalHostName();
          } catch (Exception e) {
              return address;
          }
      }).collect(Collectors.toSet());
  
      final boolean clusteringEnabled = ClusterManager.isClusteringStarted() || ClusterManager.isClusteringStarting();
  
      pageContext.setAttribute("domainname", domainname);
      pageContext.setAttribute("allHosts", allHosts);
  