title: webpack error — sockjs-node connection refused
body: <p>I get this error when I upload my site to my webserver:</p>
  
  <pre><code>http://desktop-gq7oerj:3000/sockjs-node/info?t=1489850537555 net::ERR_CONNECTION_REFUSED
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/6POOV.gif" rel="noreferrer"><img src="https://i.stack.imgur.com/6POOV.gif" alt="enter image description here"></a></p>
  
  <p>my webpack config is:</p>
  
  <pre><code> entry: [
      'webpack-dev-server/client?http://' + require("os").hostname() + ':3000/',
      'webpack/hot/only-dev-server',
      './src/index'
  ],
  </code></pre>
  
  <p>How can I fix it?</p>