localhost refused to connect in chrome mac
<p>I am using webpack-dev-server. Using this command to run the server: <code>npm run dev</code>. When I use <code>npm start</code>, it works fine, but dont want to do that as it is for production.
So far my server was running fine at <a href="http://localhost:3000" rel="nofollow noreferrer">http://localhost:3000</a>.</p>

<p>All of a sudden, today, it stopped working n chrome but works fine on other browsers like safari and firefox.</p>

<p><a href="https://i.stack.imgur.com/Bu0hc.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Bu0hc.png" alt="enter image description here"></a></p>

<p>I have cleared the cache, browsing data. Also re-installed chrome. 
But still the same issue. Any solutions?</p>