title: JBoss CLI connects to the wrong port, even though its specified right
body: <p>I am using JBoss version 7.0.9.</p>
  
  <p>When I start it, it writes this line to the console:</p>
  
  <pre><code>&lt;date&gt; &lt;loginfo&gt; WFLYSRV0051: &lt;german description that says, that this is the admin console&gt;: http://127.0.0.1:9995
  </code></pre>
  
  <p>Now I want to connect to the CLI with the following command:</p>
  
  <pre><code>jboss-cli.bat -c --controller:127.0.0.1:9995
  </code></pre>
  
  <p>OR</p>
  
  <pre><code>jboss-cli.bat -c --controller:localhost:9995
  </code></pre>
  
  <p>Both throw the following</p>
  
  <pre><code>Failed to connect to the controller: The controller is not available at localhost:9990: java.net.ConnectException: WFLYPRT0053: Konnte keine Verbindung mit http-remoting://localhost:9990 herstellen. Die Verbindung ist fehlgeschlagen: WFLYPRT0053: Konnte keine Verbindung mit http-remoting://localhost:9990 herstellen. Die Verbindung ist fehlgeschlagen: Connection refused: no further information
  </code></pre>
  
  <p>As you can see it says, that it tries to connect to <code>localhost:9990</code>, even though I said that the controller is <code>localhost:9995</code>.</p>
  
  <p>Why is that so?</p>