DatagramSocket socket = new DatagramSocket(null);
socket.setReuseAddress(true);
socket.bind(new InetSocketAddress(localAddress, localPort));
转载于:https://www.cnblogs.com/acahesky/p/3770434.html
DatagramSocket socket = new DatagramSocket(null);
socket.setReuseAddress(true);
socket.bind(new InetSocketAddress(localAddress, localPort));
转载于:https://www.cnblogs.com/acahesky/p/3770434.html