title: wildfly cli connect fails, running as windows service
body: <p>Wildfly application server is installed and started on windows. I am trying to use the CLI to do a connect which throws the below error. <strong>I am able to connect via URL.</strong> The jboss-cli.xml is pointing to the <code>8083 port</code> which I am using. Windows Defender Firewall is off. My question is - Can I connect using CLI when the server is running as a service (It's not launched as standalone). if yes,  can someone help me with the error, please?</p>
  <pre><code>C:\wildfly\bin&gt; jboss-cli.bat --connect --controller=remote+http://localhost:8083
  </code></pre>
  <p>Failed to connect to the controller:</p>
  <blockquote>
  <p>The controller is not available at localhost:8082:
  java.net.ConnectException: WFLYPRT0053: Could not connect to
  remote+http://localhost:8082. The connection failed: WFLYPRT0053:
  Could not connect to remote+http://localhost:8082. The connection
  failed: Connection refused: no further information Press any key to
  continue . . .</p>
  </blockquote>
  <p>I also tried the flags --user and --password.</p>