code: private static ServerSocket random() throws IOException {
          final ServerSocket skt = new ServerSocket(0);
          skt.setReuseAddress(true);
          return skt;
      }
docs: Make a random socket.
  @return Socket
  @throws IOException If fails