private void replaceDiscoveryProtocol(JChannel ch) throws Exception {
ProtocolStack stack=ch.getProtocolStack();
Protocol discovery=stack.removeProtocol("TCPPING");
if(discovery != null){
Protocol transport = stack.getTransport();
<BUG>MPING mping=new MPING();
mping.setMcastPort(7777);
mping.setBindAddr(InetAddress.getLocalHost());</BUG>
stack.insertProtocol(mping, ProtocolStack.ABOVE, transport.getName());
mping.setProtocolStack(ch.getProtocolStack());

private void replaceDiscoveryProtocol(JChannel ch) throws Exception {
ProtocolStack stack=ch.getProtocolStack();
Protocol discovery=stack.removeProtocol("TCPPING");
if(discovery != null){
Protocol transport = stack.getTransport();
MPING mping=new MPING();
InetAddress bindAddress=Util.getBindAddress(new Properties());
mping.setBindAddr(bindAddress);
mping.setMulticastAddress("230.3.3.3");
mping.setMcastPort(7777);
stack.insertProtocol(mping, ProtocolStack.ABOVE, transport.getName());
mping.setProtocolStack(ch.getProtocolStack());
