title: ECONNREFUSED Webdriver errors in eclipse when running Protractor
body: <p>So, I was following this tutorial on getting my existing protractor files imported to Eclipse as Java project, installing angular/protractor configurations on eclipse and running the files:
  <a href="https://www.youtube.com/watch?v=8dZ3isYcthI" rel="nofollow noreferrer">https://www.youtube.com/watch?v=8dZ3isYcthI</a></p>
  
  <p>But then I got into the weeds on this error: <a href="https://stackoverflow.com/questions/43893756/error-while-running-conf-js-file-from-eclipse">Error while running conf.js file from Eclipse</a></p>
  
  <p>In attempt to resolve it, following instructions on the youtube tutorial, I replaced the selenium webdriver folder in Eclipse with the selenium webdriver folder in my node modules folder in AppData by dragging and dropping</p>
  
  <p>Now my conf.js file will not run as protractor on Eclipse even though the file will execute successfully from the command line. Error is:</p>
  
  <blockquote>
    <p>(node:53640) DeprecationWarning: os.tmpDir() is deprecated. Use os.tmpdir()          instead.
    [15:11:38] I/launcher - Running 1 instances of WebDriver
    [15:11:38] I/hosted - Using the selenium server at <a href="http://localhost:4444" rel="nofollow noreferrer">http://localhost:4444</a>   /wd/hub
    [15:11:39] E/launcher - Error code: 135
    [15:11:39] E/launcher - Error message: ECONNREFUSED connect ECONNREFUSED 127.0.0.1:4444
    [15:11:39] E/launcher - Error: ECONNREFUSED connect ECONNREFUSED 127.0.0.1:4444 at ClientRequest. (C:\Workspace\testUltimateQASite\node_modules\selenium-webdriver\http\index.js:238:15)</p>
  </blockquote>
  
  <p>The js line it is pointing to in the index file is the last line of this function:</p>
  
  <pre><code>request.on('error', function(e) {
  if (e.code === 'ECONNRESET') {
    setTimeout(function() {
      sendRequest(options, onOk, onError, opt_data, opt_proxy);
    }, 15);
  } else {
    var message = e.message;
    if (e.code) {
      message = e.code + ' ' + message;
    }
    onError(new Error(message));
    }
    });
  </code></pre>
  
  <p>My conf.js file is as follows:</p>
  
  <pre><code>// conf.js
  //var jasmineReporters = require('jasmine-reporters');
  var os = require('os'); os.tmpDir = os.tmpdir;
  
  exports.config = {
  framework: 'jasmine',
  seleniumAddress: 'http://localhost:4444/wd/hub',
  specs: ['qaSpec.js'],
  
  
  //module.exports = { 
  params: {
    url : 'http://phptravels.com/demo/'
    /* login: {
      url: 'http://phptravels.com/demo/',
      username: 'juliel@ibm.com',
      password: 'password' 
  
      }*/
   }
   };
  </code></pre>