title: Unable to access Artemis GUI when listening on 0.0.0.0
body: <p>I am initializing brokers in 2 different ways. One that listens on <code>0.0.0.0</code> and the other that listens on the node IP i.e. <code>172.29.245.17</code>.</p>
  
  <p>Broker 1 :</p>
  
  <pre><code>[root@amq-1 apache-artemis-2.4.0]# bin/artemis create --name BROKER-1 /var/tmp/BROKER-1  --user admin --password admin --http-host 0.0.0.0 --http-port 8080 --allow-anonymous
  </code></pre>
  
  <p>Broker 2 :</p>
  
  <pre><code>[root@amq-1 apache-artemis-2.4.0]# bin/artemis create --name BROKER-2 /var/tmp/BROKER-2  --user admin --password admin --http-host 172.29.245.17 --http-port 8080 --allow-anonymous
  </code></pre>
  
  <p>As you can see, the only difference is which IP to listen on. One is open to all(0.0.0.0). The other listens only on 1 specific IP().</p>
  
  <p>There is no problem accessing the GUI of Broker-2 (one listening on <code>172.29.245.17</code>)</p>
  
  <p>Now when I start Broker-1 (listening on <code>0.0.0.0</code>), I get redirected to <code>/console/jvm/connect</code></p>
  
  <p><a href="https://i.stack.imgur.com/3rkTr.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/3rkTr.jpg" alt="enter image description here"></a></p>
  
  <p>ERROR states ::</p>
  
  <pre><code>[Core] Operation unknown failed due to: java.lang.Exception : Origin http://172.29.245.17:8080 is not allowed to call this agent
  [Core] ActiveMQ Management Console started
  [Window] Uncaught TypeError: Cannot read property 'apply' of undefined (http://172.29.245.17:8080/console/app/app.js?0d5300a336117972:16:14366)
  [Window] Uncaught TypeError: Cannot read property 'apply' of undefined (http://172.29.245.17:8080/console/app/app.js?0d5300a336117972:16:14366)
  [Window] Uncaught TypeError: Cannot read property 'apply' of undefined (http://172.29.245.17:8080/console/app/app.js?0d5300a336117972:16:14366)
  [Window] Uncaught TypeError: Cannot read property 'apply' of undefined (http://172.29.245.17:8080/console/app/app.js?0d5300a336117972:16:14366)
  </code></pre>
  
  <p>For Broker-1 , the <code>jolokia-access.xml</code> states ::</p>
  
  <pre><code>&lt;restrict&gt;
  
      &lt;cors&gt;
          &lt;!-- Allow cross origin access from 0.0.0.0 ... --&gt;
          &lt;allow-origin&gt;*://0.0.0.0*&lt;/allow-origin&gt;
  
          &lt;!-- Check for the proper origin on the server side, too --&gt;
          &lt;strict-checking/&gt;
      &lt;/cors&gt;
  
  &lt;/restrict&gt;
  </code></pre>
  
  <p>For Broker-2, the <code>jolokia-access.xml</code> states :</p>
  
  <pre><code>&lt;restrict&gt;
  
      &lt;cors&gt;
          &lt;!-- Allow cross origin access from 172.29.245.17 ... --&gt;
          &lt;allow-origin&gt;*://172.29.245.17*&lt;/allow-origin&gt;
  
          &lt;!-- Check for the proper origin on the server side, too --&gt;
          &lt;strict-checking/&gt;
      &lt;/cors&gt;
  
  &lt;/restrict&gt;
  </code></pre>
  
  <p>I am unable to figure out why the issue occurs when Im trying to listen on <code>0.0.0.0</code>. Any ideas ? </p>
  
  <p>All other configurations are default. I have not modified any other config.</p>