title: Yii2 debug bar not showing on staging server even with allowedIP's entry
body: <p>I'm trying to get the debug bar in <code>Yii2</code> to show on my staging server but for some reason it isn't showing.</p>
  
  <p>Here is code from my <code>web.php</code> config file:</p>
  
  <pre><code>if (YII_ENV_DEV) {
      // configuration adjustments for 'dev' environment
      $config['bootstrap'][] = 'debug';
      $config['modules']['debug'] = [
                                     'class' =&gt; 'yii\debug\Module',
                                     'allowedIPs' =&gt; ['127.0.0.1','::1','123.45.67.89']
                                     ];
  
      $config['bootstrap'][] = 'gii';
      $config['modules']['gii'] = 'yii\gii\Module';
  }
  </code></pre>
  
  <p><code>123.45.67.89</code> obviously is just an example for the server's real IP.</p>
  
  <p>I get the servers IP by doing:</p>
  
  <pre><code>$host = gethostname();
  $server_ip = gethostbyname($host);
  </code></pre>
  
  <p>If I try and access the debug page by going to:</p>
  
  <p><a href="http://www.example.com/debug/default/index" rel="noreferrer">http://www.example.com/debug/default/index</a></p>
  
  <p>I get the message: <em>You are not allowed to access this page.</em></p>
  
  <p>I am sure I had this working before but now it's not working for some reason and I can't figure out why!?</p>
  
  <p>I'm aware there are debug data files (not sure if they will contain any info on why I can't see it) but I am not sure how I can view the data properly?</p>