title: Ionic: Connection to server was unsuccessful
body: <p>When I try to run ionic app in emulator or device. I get the following error:</p>
  
  <blockquote>
    <p>The connection to server was unsuccessful (<a href="http://192.168.0.8:8100" rel="nofollow">http://192.168.0.8:8100</a>)</p>
  </blockquote>
  
  <p>However, it works alright in browser through <code>ionic serve</code>.</p>
  
  <p>I hope it is not due to <code>Content Security Tag</code> or <code>Cordova Whitelist plugin</code> settings which are as follows:</p>
  
  <pre><code>&lt;meta http-equiv="Content-Security-Policy" content="default-src *; style-src 'self' 'unsafe-inline'; script-src * 'unsafe-inline' 'unsafe-eval'"&gt;
  
    &lt;allow-navigation href="http://*/*"/&gt;
    &lt;access origin="*"/&gt;
  </code></pre>