All pastes #576557 Raw Edit

Mine

public text v1 · immutable
·published 2007-06-19 15:08 UTC
rendered paste body
		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());
		}