code: public void bind(InetSocketAddress address) throws IOException {
          if (listener != null) {
              listener.close();
              listener = null;
          }
          listener = ServerSocketChannel.open();
          listener.socket().bind(address);
      }
docs: Set the server's listening address. See {@link #bind(java.nio.channels.ServerSocketChannel)}
  
  @param address The address the server should listen on
  @throws IOException if a new socket could not be created