I'm not able to run protractor test in firefox but in chrome it runs fine
<p>When I am trying to run Protractor e2e test in firefox, it launches the browser but my test scripts do not get executed.</p>

<p>I am using windows Server 2012 R2 machine with firefox version 46.0.1 and Selenium 2.53.0.</p>

<p>It gives me the following error: </p>

<pre><code>Using FirefoxDriver directly...
[launcher] Running 1 instances of WebDriver

code\ui\dgui\node_modules\protractor\node_modules\selenium-webdriver\http\util.js:89
          Error('Timed out waiting for the WebDriver server at ' + url));
          ^
Error: Timed out waiting for the WebDriver server at http://127.0.0.1:58798/hub
</code></pre>

<p>I tried running Selenium standalone </p>

<pre><code>    code\ui\dgui\node_modules\protractor\selenium&gt;java -jar selenium-server-standalone-2.53.0.jar
    09:37:21.214 INFO - Launching a standalone Selenium Server
    09:37:21.285 INFO - Java: Oracle Corporation 25.91-b14
    09:37:21.285 INFO - OS: Windows Server 2012 R2 6.3 amd64
    09:37:21.293 INFO - v2.53.0, with Core v2.53.0. Built from revision 35ae25b
    09:37:21.332 INFO - Driver class not found: com.opera.core.systems.OperaDriver
    09:37:21.332 INFO - Driver provider com.opera.core.systems.OperaDriver is not registered
    09:37:21.336 INFO - Driver provider org.openqa.selenium.safari.SafariDriver registration is skipped:
    registration capabilities Capabilities [{browserName=safari, version=, platform=MAC}] does not match the current platform WIN8
    09:37:21.336 INFO - Driver class not found: org.openqa.selenium.htmlunit.HtmlUnitDriver
    09:37:21.336 INFO - Driver provider org.openqa.selenium.htmlunit.HtmlUnitDriver is not registered
09:37:21.434 INFO - RemoteWebDriver instances should connect to: http://127.0.0.1:4444/wd/hub
09:37:21.434 INFO - Selenium Server is up and running
</code></pre>

<p>I am using <code>npm run e2e</code> command to execute my test</p>

<p>my Config file:</p>

<pre><code>exports.config = {

  allScriptsTimeout: 30000,

  suites: {
      test Suit: 'e2e/TestSuites/Tests/*.js',
  },

   multiCapabilities: [

    // We will want to eventually include the following options to split out tests to multiple instances

    {'browserName': 'firefox'}
  ],


  // only for firefox and chrome - IE will require using a selenium server

  directConnect : true,  

  // make sure that the baseURL reflects the configuration of the web server

  baseUrl: 'http://10.26.5.13:8000/',


  framework: 'jasmine2',

  jasmineNodeOpts: {
    defaultTimeoutInterval: 30000
  },


  onPrepare: function() {     
    var jasmineReporters = require('jasmine-reporters');

    browser.driver.manage().window().maximize();

    return browser.getProcessedConfig().then(function(config) {

      var browserName = config.capabilities.browserName;


      var junitReporter = new jasmineReporters.JUnitXmlReporter({
             consolidateAll: true,
             savePath: 'tests/test-results',
             // this will produce distinct xml files for each capability
             filePrefix: browserName + '-xmloutput',
             modifySuiteName: function(generatedSuiteName, suite) {
                 // this will produce distinct suite names for each capability,
                 // e.g. 'firefox.login tests' and 'chrome.login tests'
                 return browserName + '.' + generatedSuiteName;
             }

         });
         jasmine.getEnv().addReporter(junitReporter);
    });    

  }, 

  resultJsonOutputFile: 'tests/test-results/output.json'

};
</code></pre>