code: public void bind(InetSocketAddress inetSocketAddress) throws IOException {
      if (inetSocketAddress == null) {
        throw new IllegalArgumentException("Null inetSocketAddress");
      }
      setLocalSocketAddress(inetSocketAddress);
      start();
    }
docs: Bind localhost address
  
  @param inetSocketAddress
  @throws IOException