PeerGroup pg = PeerGroupFactory.newNetPeerGroup(); PipeID id = IDFactory.newPipeID(pg.getPeerGroupID()); System.out.println(id);