title: Connection refused: localhost:4200 favicon.ico 502 in angular 7
body: <p>I have create an angular project via</p>
  
  <pre><code>ng new project_name --style=scss
  </code></pre>
  
  <p>and then try to run via</p>
  
  <pre><code>ng serve
  </code></pre>
  
  <p>but getting error</p>
  
  <p><a href="https://i.stack.imgur.com/YJhHB.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/YJhHB.png" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/pXYTX.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/pXYTX.png" alt="enter image description here"></a></p>
  
  <p>removed and reinstalled the <code>node_modules</code> but all in vain.</p>
  
  <p>Every time getting this error, please guide what to do!!!</p>
  
  <p><strong>UPDATE 1</strong></p>
  
  <p>Why I am not able to run <code>Angular</code> application on <code>localhost</code> (running on 192.168.X.X:4200) in my office pc but the same project I can run on <code>localhost</code> at my home</p>
  
  <p><strong>UPDATE 2</strong></p>
  
  <p>in hosts file, I have this. Is it OK?</p>
  
  <p>127.0.0.1 localhost</p>
  
  <p>::1 localhost</p>
  
  <p><strong>Update 3</strong></p>
  
  <p>I am quite sure, it is only the system config issue that's why it is blocking localhost and allowing 192.168.X.X but don't know where the problem lies.</p>