摘要: 经查,是socket地址重复使用的原因,将代码做如下改变即可。ctlClient = new DatagramSocket(TRANSCTLPORT);ctlClient = new DatagramSocket(null);ctlClient.setReuseAddress(true);ctlClient.bind(new InetSocketAddress(TRANSCTLPORT)); 阅读全文