title: selenium node-hub configuration
body: <p>I have the following configuration in my /etc/rc.local file </p>
  
  <pre><code>Xvfb :99 -screen 0 1024x768x24 -ac 2&gt;&amp;1 &gt;/dev/null &amp;
  export DISPLAY=:99
  java -jar /home/ubuntu/selenium-server-standalone-2.29.0.jar -role hub   -maxSession 50 -Dwebdriver.chrome.driver=/usr/local/bin/chromedriver &gt; /home/ubuntu/selenium.log&amp;
  
  
  Xvfb :98 -screen 0 1024x768x24 -ac 2&gt;&amp;1 &gt;/dev/null &amp;
  export DISPLAY=:98
  java -jar /home/ubuntu/selenium-server-standalone-2.29.0.jar -role node -hub http://IP:4444/grid/register url http://IP:4444/grid/register -remoteHost http://IP:4444/grid/register -host http://IP -Dwebdriver.chrome.driver=/usr/local/bin/chromedriver &gt; /home/ubuntu/selenium-node.log&amp;
  </code></pre>
  
  <p>To run a hub and a node on the same machine , when I connect to the 5555 port (acing as a node) , I can run it successfully , but when asking the hub (port 4444) , I get </p>
  
  <pre><code>Session [None] not available and is not among the last 1000 terminated sessions.\nActive sessions are[]'
  </code></pre>
  
  <p>My code is as follows:</p>
  
  <pre><code> driver = webdriver.Remote("http://IP:4444/wd/hub", webdriver.DesiredCapabilities.CHROME)
  driver.get("http://www.google.com")
  print "Page Title: " + driver.title
  driver.close()
  </code></pre>