org.apache.http.conn.HttpHostConnectException: Connect to localhost:26942 [localhost/127.0.0.1, localhost/0:0:0:0:0:0:0:1] failed: Connection refused: connect Build info: version: 'unknown', revision: '2aa21c1', time: '2016-08-02 14:59:43 -0700' System info: host: 'Rahul', ip: '10.0.0.175', os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', java.version: '1.8.0_101' Driver info: driver.version: FirefoxDriver

Google Groups | Rahul Ahluwalia | 4 months ago
  1. 0

    Error while trying to run test in Firefox via Selenium

    Google Groups | 4 months ago | Hima Nair
    org.apache.http.conn.HttpHostConnectException: Connect to localhost:16447 [localhost/127.0.0.1, localhost/0:0:0:0:0:0:0:1] failed: Connection refused: connect Build info: version: 'unknown', revision: '2aa21c1', time: '2016-08-02 14:59:43 -0700' System info: host: 'User-PC', ip: '100.69.196.196', os.name: 'Windows 7', os.arch: 'x86', os.version: '6.1', java.version: '1.8.0_92' Driver info: driver.version: FirefoxDriver
  2. 0

    Hi I'm new to selenium please advise

    Google Groups | 4 months ago | Rahul Ahluwalia
    org.apache.http.conn.HttpHostConnectException: Connect to localhost:26942 [localhost/127.0.0.1, localhost/0:0:0:0:0:0:0:1] failed: Connection refused: connect Build info: version: 'unknown', revision: '2aa21c1', time: '2016-08-02 14:59:43 -0700' System info: host: 'Rahul', ip: '10.0.0.175', os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', java.version: '1.8.0_101' Driver info: driver.version: FirefoxDriver
  3. 0

    Alfresco share 503 Connection refused

    Stack Overflow | 10 months ago | Masi
    org.apache.http.conn.HttpHostConnectException: Connect to localhost:8080 [localhost/127.0.0.1, localhost/0:0:0:0:0:0:0:1] failed: Connection refused: connect
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Passing username/password in Apache Http Client Java similar to CURL

    Stack Overflow | 3 years ago | Akshay Aroor
    org.apache.http.conn.HttpHostConnectException: Connect to api.calltrackingmetrics.com:443 [api.calltrackingmetrics.com/166.78.112.169, api.calltrackingmetrics.com/198.61.173.12] failed: Connection refused: connect

  1. poroszd 1 times, last 4 weeks ago
  2. musketyr 6 times, last 2 months ago
  3. Nikolay Rybak 4 times, last 2 months ago
  4. tfr 1 times, last 4 months ago
  5. pbabcsany 2 times, last 3 months ago
45 more registered users
48 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.net.ConnectException

    Connection refused: connect

    at java.net.DualStackPlainSocketImpl.waitForConnect()
  2. Java RT
    Socket.connect
    1. java.net.DualStackPlainSocketImpl.waitForConnect(Native Method)
    2. java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:85)
    3. java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
    4. java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
    5. java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
    6. java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172)
    7. java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
    8. java.net.Socket.connect(Socket.java:589)
    8 frames
  3. Apache HttpClient
    CloseableHttpClient.execute
    1. org.apache.http.conn.socket.PlainConnectionSocketFactory.connectSocket(PlainConnectionSocketFactory.java:74)
    2. org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:141)
    3. org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:158)
    4. org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:353)
    5. org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:380)
    6. org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:236)
    7. org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:184)
    8. org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:88)
    9. org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:110)
    10. org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:184)
    11. org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:71)
    12. org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:55)
    12 frames
  4. Selenium
    RemoteWebDriver.execute
    1. org.openqa.selenium.remote.internal.ApacheHttpClient.fallBackExecute(ApacheHttpClient.java:142)
    2. org.openqa.selenium.remote.internal.ApacheHttpClient.execute(ApacheHttpClient.java:88)
    3. org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:142)
    4. org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:82)
    5. org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:91)
    6. org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:649)
    6 frames