Connection refused error

20 views
Skip to first unread message

Lalit Sharma

unread,
Aug 28, 2025, 1:17:16 AMAug 28
to ZAP User Group
Hi,

I'm new to OWASP ZAP and I've run into a problem. I'm currently trying to run ZAP but its not working appropriately. Whenever I try to check for updates, I get an error message: "Error encountered. Please check manually for new updates". The output tab is blank while the History tab is populated by multiple requests to cfu.zaproxy.org which end up with 504 Gateway Timeout error.

Environment details:
OS: Windows 11 x64

ZAP version: 2.16.1

Java installation: 
C:\Users\Lalit>java -version
openjdk version "17.0.16" 2025-07-15
OpenJDK Runtime Environment OpenLogic-OpenJDK (build 17.0.16+8-adhoc..jdk17u)
OpenJDK 64-Bit Server VM OpenLogic-OpenJDK (build 17.0.16+8-adhoc..jdk17u, mixed mode, sharing)

C:\Users\Lalit>javac -version
javac 17.0.16

Steps done so far:
  1. Initially I had Firefox installed using Microsoft Store but later I realized that ZAP is not compatible with the MS Store Firefox installation. Removed the MS Store installation and installed it the traditional way.
  2. Added ZAP's root CA to Java's keystore.
  3. Deleted webdriver directory.
I launched zap.bat file from CMD with elevated privileges. Below is the error message:
19455 [ZAP-telemetry-start] ERROR org.zaproxy.addon.callhome.ExtensionCallHome - Connect to http://127.0.0.1:8080 [/127.0.0.1] failed: Connection refused: getsockopt
org.apache.hc.client5.http.HttpHostConnectException: Connect to http://127.0.0.1:8080 [/127.0.0.1] failed: Connection refused: getsockopt
        at java.base/sun.nio.ch.Net.pollConnect(Native Method) ~[?:?]
        at java.base/sun.nio.ch.Net.pollConnectNow(Net.java:672) ~[?:?]
        at java.base/sun.nio.ch.NioSocketImpl.timedFinishConnect(NioSocketImpl.java:547) ~[?:?]
        at java.base/sun.nio.ch.NioSocketImpl.connect(NioSocketImpl.java:602) ~[?:?]
        at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:327) ~[?:?]
        at java.base/java.net.Socket.connect(Socket.java:633) ~[?:?]
        at org.apache.hc.client5.http.socket.PlainConnectionSocketFactory.lambda$connectSocket$0(PlainConnectionSocketFactory.java:85) ~[?:?]
        at java.base/java.security.AccessController.doPrivileged(AccessController.java:569) ~[?:?]
        at org.apache.hc.client5.http.socket.PlainConnectionSocketFactory.connectSocket(PlainConnectionSocketFactory.java:84) ~[?:?]
        at org.apache.hc.client5.http.socket.ConnectionSocketFactory.connectSocket(ConnectionSocketFactory.java:113) ~[?:?]
        at org.apache.hc.client5.http.impl.io.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:181) ~[?:?]
        at org.apache.hc.client5.http.impl.io.ZapHttpClientConnectionOperator.connect(ZapHttpClientConnectionOperator.java:95) ~[?:?]
        at org.apache.hc.client5.http.impl.io.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:447) ~[?:?]
        at org.apache.hc.client5.http.impl.classic.InternalExecRuntime.connectEndpoint(InternalExecRuntime.java:162) ~[?:?]
        at org.apache.hc.client5.http.impl.classic.InternalExecRuntime.connectEndpoint(InternalExecRuntime.java:172) ~[?:?]
        at org.apache.hc.client5.http.impl.classic.ConnectExec.execute(ConnectExec.java:146) ~[?:?]
        at org.apache.hc.client5.http.impl.classic.ExecChainElement.execute(ExecChainElement.java:51) ~[?:?]
        at org.apache.hc.client5.http.impl.classic.ZapProtocolExec.execute(ZapProtocolExec.java:179) ~[?:?]
        at org.apache.hc.client5.http.impl.classic.ExecChainElement.execute(ExecChainElement.java:51) ~[?:?]
        at org.apache.hc.client5.http.impl.classic.ZapHttpRequestRetryExec.execute(ZapHttpRequestRetryExec.java:81) ~[?:?]
        at org.apache.hc.client5.http.impl.classic.ExecChainElement.execute(ExecChainElement.java:51) ~[?:?]
        at org.apache.hc.client5.http.impl.classic.ZapInternalHttpClient.doExecute(ZapInternalHttpClient.java:173) ~[?:?]
        at org.apache.hc.client5.http.impl.classic.CloseableHttpClient.execute(CloseableHttpClient.java:245) ~[?:?]
        at org.apache.hc.client5.http.impl.classic.CloseableHttpClient.execute(CloseableHttpClient.java:188) ~[?:?]
        at org.zaproxy.addon.network.internal.client.apachev5.HttpSenderApache.sendImpl0(HttpSenderApache.java:486) ~[?:?]
        at org.zaproxy.addon.network.internal.client.apachev5.HttpSenderApache.sendImpl(HttpSenderApache.java:365) ~[?:?]
        at org.zaproxy.addon.network.internal.client.apachev5.HttpSenderApache.sendImpl(HttpSenderApache.java:116) ~[?:?]
        at org.zaproxy.addon.network.internal.client.BaseHttpSender.sendRateLimited(BaseHttpSender.java:415) ~[?:?]
        at org.zaproxy.addon.network.internal.client.BaseHttpSender.sendAuthenticated(BaseHttpSender.java:383) ~[?:?]
        at org.zaproxy.addon.network.internal.client.BaseHttpSender.sendNoRedirections(BaseHttpSender.java:351) ~[?:?]
        at org.zaproxy.addon.network.internal.client.BaseHttpSender.send(BaseHttpSender.java:307) ~[?:?]
        at org.zaproxy.addon.network.internal.client.BaseHttpSender.sendAndReceive(BaseHttpSender.java:278) ~[?:?]
        at org.zaproxy.addon.network.internal.client.BaseHttpSender.sendAndReceive(BaseHttpSender.java:234) ~[?:?]
        at org.parosproxy.paros.network.HttpSender.sendImpl(HttpSender.java:536) ~[zap-2.16.1.jar:2.16.1]
        at org.parosproxy.paros.network.HttpSender.sendAndReceive(HttpSender.java:529) ~[zap-2.16.1.jar:2.16.1]
        at org.zaproxy.addon.callhome.ExtensionCallHome.sendServiceRequest(ExtensionCallHome.java:197) ~[?:?]
        at org.zaproxy.addon.callhome.ExtensionCallHome.lambda$uploadTelemetryStartData$5(ExtensionCallHome.java:335) ~[?:?]
        at java.base/java.lang.Thread.run(Thread.java:840) [?:?]

thc202

unread,
Aug 28, 2025, 1:20:07 AMAug 28
to zaprox...@googlegroups.com
Hi,

Did you configure an upsteam proxy in ZAP? `127.0.0.1:8080` is ZAP's
default listening address/port.

Best regards.

On 28/08/2025 04:16, Lalit Sharma wrote:
> Hi,
>
> I'm new to OWASP ZAP and I've run into a problem. I'm currently trying to
> run ZAP but its not working appropriately. Whenever I try to check for
> updates, I get an error message: "Error encountered. Please check manually
> for new updates". The output tab is blank while the History tab is
> populated by multiple requests to cfu.zaproxy.org which end up with 504
> Gateway Timeout error.
>
> Environment details:
> OS: Windows 11 x64
>
> ZAP version: 2.16.1
>
> Java installation:
> C:\Users\Lalit>java -version
> openjdk version "17.0.16" 2025-07-15
> OpenJDK Runtime Environment OpenLogic-OpenJDK (build
> 17.0.16+8-adhoc..jdk17u)
> OpenJDK 64-Bit Server VM OpenLogic-OpenJDK (build 17.0.16+8-adhoc..jdk17u,
> mixed mode, sharing)
>
> C:\Users\Lalit>javac -version
> javac 17.0.16
>
> Steps done so far:
>
> 1. Initially I had Firefox installed using Microsoft Store but later I
> realized that ZAP is not compatible with the MS Store Firefox installation.
> Removed the MS Store installation and installed it the traditional way.
> 2. Added ZAP's root CA to Java's keystore.
> 3. Deleted webdriver directory.

Lalit Sharma

unread,
Aug 28, 2025, 8:47:33 AMAug 28
to ZAP User Group
This is definitely one of the facepalm moments where I checked everything within ZAP, but forgot to check the proxy I configured earlier. I feel stupid. 

Thanks for pointing it out @thc202.

Best regards

Reply all
Reply to author
Forward
0 new messages