title: Python Selenium Geckodriver Connection refused
body: <p>I spent hours trying to make Selenium works with Python no luck
  this error message 
  <code>selenium.common.exceptions.WebDriverException: Message: connection refused</code>
  this is the example I have used:-</p>
  
  <pre><code>from pyvirtualdisplay import Display
  from selenium import webdriver
  display = Display(visible=0, size=(800, 600))
  display.start()
  browser = webdriver.Firefox()
  browser.get('http://www.python.org')
  browser.close()
  </code></pre>
  
  <p>This is depence I intalled 
  <code>apt-get install -y xorg xvfb  dbus-x11 xfonts-100dpi xfonts-75dpi xfonts-cyrillic</code></p>
  
  <p>This is  <code>/root/geckodriver.log</code> output </p>
  
  <blockquote>
    <p>1493938773101   geckodriver     INFO    Listening on 127.0.0.1:40876
    1493938774156   geckodriver::marionette INFO    Starting browser
    /usr/lib/firefox/firefox.sh with args ["-marionette"] (firefox:3128):
    GLib-GObject-CRITICAL **: g_object_ref: assertion 'object->ref_count >
    0' failed</p>
  </blockquote>
  
  <p>I'm running Selenium on <code>Ubuntu 14.04 64-bit</code> VPS remote server with 128MB RAM
  I can't figure out what's make Selenium not able to communicate with browsers drivers both Chrome and Firefox.</p>