以前用jgroups以及mantaray都碰到过这样的问题蹩脚的做法禁止IPv协议今天学到的一招解决网络编程IPv带来的问题!设置一个属性就可以了 preferIPvStack=true 以后用jgroups可以设置一下就可以了查阅sun官方文档解释如下
preferIPvStack (default: false) If IPv is available on the operating system the underlying native socket will be an IPv socket This allows Java(tm) applications to connect too and accept connections from both IPv and IPv hosts If an application has a preference to only use IPv sockets then this property can be set to true The