ServerSocket ss = new ServerSocket(0, 1, InetAddress.getByAddress(new byte[] { 127, 0, 0, 1 }));
return ss.getLocalPort();
转载于:https://my.oschina.net/jingshishengxu/blog/3071942
ServerSocket ss = new ServerSocket(0, 1, InetAddress.getByAddress(new byte[] { 127, 0, 0, 1 }));
return ss.getLocalPort();
转载于:https://my.oschina.net/jingshishengxu/blog/3071942