title: Selenium Webdriver remote setup
body: <p>I have the selenium-server-standalone.jar running on my local machine, and the tests I want to run compiled on my remote machine, but I have no idea how I make the tests connect to the machine that will run the browser. Any help appreciated.</p>
  
  <p>Update:
  On my local machine (the one I will be running the browser on) I ran </p>
  
  <pre><code>java -jar selenium-server-standalone-2.25.0.jar -mode hub
  </code></pre>
  
  <p>on my remote machine (that I will run the tests from) I ran</p>
  
  <pre><code>java -jar selenium-server-standalone-2.25.0.jar -role webDriver -hub http://**My ip*:4444
  </code></pre>
  
  <p>my code contains the following:</p>
  
  <pre><code> @Before
      public void setUp() throws Exception {
              DesiredCapabilities capability = DesiredCapabilities.firefox();
              driver = new RemoteWebDriver(new URL("http://**My ip**:4444/wd/hub"),  
              capability);
              baseUrl = "http://phy05:8080";
              driver.manage().timeouts().implicitlyWait(20, TimeUnit.SECONDS);
              driver.manage().timeouts().pageLoadTimeout(30, TimeUnit.SECONDS);
              driver.manage().window().setSize(new Dimension(1920, 1080));
  </code></pre>
  
  <p>I am using Linux and my tests are written in Java</p>