title: How To Open Localhost With Selenium - C# .NET
body: <p>I'm testing a .Net exe web application on my local machine using Selenium web driver in Visual Studio. To view the web UI I need to open a firefox browser and connect to <a href="http://localhost:12345" rel="nofollow">http://localhost:12345</a></p>
  
  <p>When I run this code </p>
  
  <pre><code>driver.Navigate().GoToUrl("http://localhost:12345");
  </code></pre>
  
  <p>a browser opens but just sits blank. Then I eventually get this error in VS:</p>
  
  <p>'OpenQA.Selenium.WebDriverException : Failed to start up socket within 45000 milliseconds. Attempted to connect to the following addresses: 127.0.0.1:7055'</p>
  
  <p>When I run the same test using Selenium IDE Firefox opens <a href="http://localhost:12345" rel="nofollow">http://localhost:12345</a> correctly.</p>
  
  <p>How do I get Firefox to open the localhost address I provide it in my C# code?</p>