title: node proxy error Error: connect ECONNREFUSED
body: <p>I use reverse proxy from the following module
  <a href="https://github.com/nodejitsu/node-http-proxy" rel="noreferrer">https://github.com/nodejitsu/node-http-proxy</a></p>
  
  <p>and I got in err for the following code </p>
  
  <pre><code>proxy.on('error', function (err, req, res) {
      res.end('Error occurr'+ err);
  });
  </code></pre>
  
  <p><strong>connect ECONNREFUSED</strong>what does it mean this error and what can be possible solution to it?</p>
  
  <p>I use the </p>
  
  <pre><code>proxy = httpProxy.createProxyServer({});
  
      proxy.web(req, res, {
          target: 'http://' + hostname + ':' + port
      });
  
      proxy.on('error', function (err, req, res) {
          res.end('Error occurr'+ err);
      });
  </code></pre>
  
  <p>and I need just to proxy calls to new port </p>