EndpointService endpoint = networkManager.getNetPeerGroup().getEndpointService(); // Print out all of the endpoint protocol addresses. // These can be used by the EndpointClient to send a // message to the EndpointServer. EndpointProtocol aProtocol = null; Enumeration protocols = endpoint.getEndpointProtocols(); while (protocols.hasMoreElements()) { aProtocol = (EndpointProtocol) protocols.nextElement(); // Print out the address. System.out.println("Endpoint address:" + aProtocol.getPublicAddress().toString()); }