# Issues with Selenium - java.net.ConnectException: Failed to connect to localhost/0:0:0:0:0:0:0:1:

**URL:** <https://forum.knime.com/t/issues-with-selenium-java-net-connectexception-failed-to-connect-to-localhost-0000/23121>\
**Category:** Community Extensions\
**Tags:** palladian-selenium\
**Created:** [April 28, 2020, 9:35pm UTC](https://forum.knime.com/t/issues-with-selenium-java-net-connectexception-failed-to-connect-to-localhost-0000/23121 "2020-04-28T21:35:14Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![nxfxcom](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/n/4af34b/32.png) [@nxfxcom](https://forum.knime.com/u/nxfxcom)\
**Post date:** [April 28, 2020, 9:35pm UTC](https://forum.knime.com/t/issues-with-selenium-java-net-connectexception-failed-to-connect-to-localhost-0000/23121/1 "2020-04-28T21:35:14Z")

</div>

Hello,

No matter what browser I am using it seems to work fine and then after a while:  
ERROR Navigate 3:62:12 Execution failed in Try-Catch block: java.net.ConnectException: Failed to connect to localhost/0:0:0:0:0:0:0:1:24165  
ERROR Navigate 3:62:12 Execution failed in Try-Catch block: java.net.ConnectException: Failed to connect to localhost/0:0:0:0:0:0:0:1:24165  
ERROR Navigate 3:62:12 Execution failed in Try-Catch block: java.net.ConnectException: Failed to connect to localhost/0:0:0:0:0:0:0:1:24165  
ERROR Navigate 3:62:12 Execution failed in Try-Catch block: java.net.ConnectException: Failed to connect to localhost/0:0:0:0:0:0:0:1:24165  
ERROR Navigate 3:62:12 Execution failed in Try-Catch block: java.net.ConnectException: Failed to connect to localhost/0:0:0:0:0:0:0:1:24165  
ERROR Navigate 3:62:12 Execution failed in Try-Catch block: java.net.ConnectException: Failed to connect to localhost/0:0:0:0:0:0:0:1:24165  
ERROR Navigate 3:62:12 Execution failed in Try-Catch block: java.net.ConnectException: Failed to connect to localhost/0:0:0:0:0:0:0:1:24165  
ERROR Navigate 3:62:12 Execution failed in Try-Catch block: java.net.ConnectException: Failed to connect to localhost/0:0:0:0:0:0:0:1:24165  
ERROR Navigate 3:62:12 Execution failed in Try-Catch block: java.net.ConnectException: Failed to connect to localhost/0:0:0:0:0:0:0:1:24165  
ERROR Navigate 3:62:12 Execution failed in Try-Catch block: java.net.ConnectException: Failed to connect to localhost/0:0:0:0:0:0:0:1:24165  
ERROR Navigate 3:62:12 Execution failed in Try-Catch block: java.net.ConnectException: Failed to connect to localhost/0:0:0:0:0:0:0:1:24165  
ERROR Navigate 3:62:12 Execution failed in Try-Catch block: java.net.ConnectException: Failed to connect to localhost/0:0:0:0:0:0:0:1:24165

Tried different browsers etc!

Thank you

---

<div class="post-metadata">

**Author:** ![qqilihq](https://forum-cdn.knime.com/user_avatar/forum.knime.com/qqilihq/32/50_2.png) [@qqilihq](https://forum.knime.com/u/qqilihq)\
**Post date:** [April 28, 2020, 9:59pm UTC](https://forum.knime.com/t/issues-with-selenium-java-net-connectexception-failed-to-connect-to-localhost-0000/23121/2 "2020-04-28T21:59:46Z")

</div>

Can you attach a DEBUG log? Hows does the workflow look like? Also details about versions, system configuration would be helpful.

– P

---

<div class="post-metadata">

**Author:** ![nxfxcom](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/n/4af34b/32.png) [@nxfxcom](https://forum.knime.com/u/nxfxcom)\
**Post date:** [April 29, 2020, 2:33pm UTC](https://forum.knime.com/t/issues-with-selenium-java-net-connectexception-failed-to-connect-to-localhost-0000/23121/3 "2020-04-29T14:33:06Z")

</div>

Hello,

It’ s a pretty simple workflow and the error occurs on the navigate:

 ![e1](https://forum-cdn.knime.com/uploads/default/original/3X/4/7/474eb46744087635493efa06cd099c76577f93c3.png)

And excerpt below:  
Caused by: org.openqa.selenium.WebDriverException: java.net.ConnectException: Failed to connect to localhost/0:0:0:0:0:0:0:1:16260  
Build info: version: ‘unknown’, revision: ‘unknown’, time: ‘unknown’  
System info: host: ‘PF1WT1H8-W10’, ip: ‘192.168.86.169’, os.name: ‘Windows 10’, os.arch: ‘amd64’, os.version: ‘10.0’, java.version: ‘1.8.0\_202’  
Driver info: driver.version: RemoteWebDriver  
at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:92)  
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:552)  
at org.openqa.selenium.remote.RemoteWebDriver.get(RemoteWebDriver.java:277)  
at org.openqa.selenium.remote.RemoteWebDriver$RemoteNavigation.to(RemoteWebDriver.java:857)  
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)  
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)  
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)  
at java.lang.reflect.Method.invoke(Method.java:498)  
at ws.palladian.nodes.selenium.SeleniumUtils$SeleniumSyncInvocationHandler.invoke(SeleniumUtils.java:43)  
at com.sun.proxy.$Proxy71.to(Unknown Source)  
at ws.palladian.nodes.selenium.navigate.NavigateNodeSettings.performNavigation(NavigateNodeSettings.java:112)  
at ws.palladian.nodes.selenium.navigate.NavigateNodeModel.execMethod(NavigateNodeModel.java:29)  
at ws.palladian.nodes.selenium.navigate.NavigateNodeModel.execMethod(NavigateNodeModel.java:1)  
at ws.palladian.nodes.selenium.AbstractSearchContextMethodNodeModel.execute(AbstractSearchContextMethodNodeModel.java:128)  
… 14 more  
Caused by: java.net.ConnectException: Failed to connect to localhost/0:0:0:0:0:0:0:1:16260  
at okhttp3.internal.connection.RealConnection.connectSocket(RealConnection.java:247)  
at okhttp3.internal.connection.RealConnection.connect(RealConnection.java:165)  
at okhttp3.internal.connection.StreamAllocation.findConnection(StreamAllocation.java:257)  
at okhttp3.internal.connection.StreamAllocation.findHealthyConnection(StreamAllocation.java:135)  
at okhttp3.internal.connection.StreamAllocation.newStream(StreamAllocation.java:114)  
at okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.java:42)  
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)  
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121)  
at okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.java:93)  
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)  
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121)  
at okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.java:93)  
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)  
at okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.java:126)  
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)  
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121)  
at okhttp3.RealCall.getResponseWithInterceptorChain(RealCall.java:200)  
at okhttp3.RealCall.execute(RealCall.java:77)  
at org.openqa.selenium.remote.internal.OkHttpClient.execute(OkHttpClient.java:103)  
at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:155)  
at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:83)  
… 27 more  
Caused by: java.net.ConnectException: Connection refused: connect  
at java.net.DualStackPlainSocketImpl.waitForConnect(Native Method)  
at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:85)  
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)  
at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)  
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)  
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172)  
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)  
at java.net.Socket.connect(Socket.java:589)  
at okhttp3.internal.platform.Platform.connectSocket(Platform.java:129)  
at okhttp3.internal.connection.RealConnection.connectSocket(RealConnection.java:245)  
… 47 more  
2020-03-30 16:05:09,972 : ERROR : KNIME-Worker-54-Navigate 2:12 : : Node : Navigate : 2:12 : Execute fail

THANK YOU

---

<div class="post-metadata">

**Author:** ![qqilihq](https://forum-cdn.knime.com/user_avatar/forum.knime.com/qqilihq/32/50_2.png) [@qqilihq](https://forum.knime.com/u/qqilihq)\
**Post date:** [April 29, 2020, 3:10pm UTC](https://forum.knime.com/t/issues-with-selenium-java-net-connectexception-failed-to-connect-to-localhost-0000/23121/4 "2020-04-29T15:10:20Z")

</div>

Hi,

nothing here which strikes my eye so far.

> [@nxfxcom](#):
>
> then after a while:

Can you clarify? What means “a while”? Does this happen within minutes, hours?

How is the workflow structured? Do you run this in a loop? Is this executed on a schedule?

Is the browser still open when this happens, or did it disappear (crash)?

– Philipp

---

<div class="post-metadata">

**Author:** ![nxfxcom](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/n/4af34b/32.png) [@nxfxcom](https://forum.knime.com/u/nxfxcom)\
**Post date:** [April 29, 2020, 5:39pm UTC](https://forum.knime.com/t/issues-with-selenium-java-net-connectexception-failed-to-connect-to-localhost-0000/23121/5 "2020-04-29T17:39:02Z")

</div>

It’s inside a loop. I would say after 20-30 iterations it dies… And the browser window stays open! See attached for WF

 ![error](https://forum-cdn.knime.com/uploads/default/original/3X/8/1/81e52d2a3eb611e36d9de9d378001ad212bd5d5d.png) ![main](https://forum-cdn.knime.com/uploads/default/original/3X/2/1/21a384f08bf8dba807756a846692144f54e8cc78.png)

---

<div class="post-metadata">

**Author:** ![qqilihq](https://forum-cdn.knime.com/user_avatar/forum.knime.com/qqilihq/32/50_2.png) [@qqilihq](https://forum.knime.com/u/qqilihq)\
**Post date:** [April 30, 2020, 6:19am UTC](https://forum.knime.com/t/issues-with-selenium-java-net-connectexception-failed-to-connect-to-localhost-0000/23121/6 "2020-04-30T06:19:52Z")

</div>

Can you share the workflow? Are you running the latest release of the nodes, i.e. 4.3.2?

---

<div class="post-metadata">

**Author:** ![system](https://forum-cdn.knime.com/uploads/default/original/1X/ab3ccf34482a0329361734a18199390177204f15.png) [@system](https://forum.knime.com/u/system)\
**Post date:** [April 21, 2023, 9:38pm UTC](https://forum.knime.com/t/issues-with-selenium-java-net-connectexception-failed-to-connect-to-localhost-0000/23121/7 "2023-04-21T21:38:19Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
