Hi.
Which ZAP version? Does ZAP (or the docker container) have permissions
to access network resources and reach the target? That (connection
refused) might happen, for example, if there's a firewall in the way.
Best regards.
>>> entry point: * /bin/sh -c*
>>> commands: *zap.sh -daemon -host 0.0.0.0 -port 8090 -config
>>> api.disablekey=true -config
api.addrs.addr.name
>>> <
http://api.addrs.addr.name>=.* -config api.addrs.addr.regex=true*
>>>
>>> The application deploys properly as you can see in the following piece of
>>> log file:
>>>
>>> *....*
>>>
>>> *13074 [ZAP-daemon] INFO org.parosproxy.paros.extension.ExtensionLoader -
>>> Initializing ExtensionJxBrowserLinux64 13074 [ZAP-daemon] INFO
>>> org.parosproxy.paros.extension.ExtensionLoader - Initializing
>>> ExtSelJxBrowserLinux64 13192 [ZAP-daemon] INFO
>>> org.parosproxy.paros.extension.ExtensionLoader - Initializing Easy way to
>>> replace strings in requests and responses 13194 [ZAP-daemon] INFO
>>> org.parosproxy.paros.extension.ExtensionLoader - Initializing Context alert
>>> rules filter 14262 [ZAP-daemon] INFO
>>> org.zaproxy.zap.extension.callback.ExtensionCallback - Started callback
>>> server on
0.0.0.0:42039 <
http://0.0.0.0:42039> 14262 [ZAP-daemon] INFO
>>> org.zaproxy.zap.extension.dynssl.ExtensionDynSSL - Creating new root CA
>>> certificate 17579 [ZAP-daemon] INFO
>>> org.zaproxy.zap.extension.dynssl.ExtensionDynSSL - New root CA certificate
>>> created 17584 [ZAP-daemon] INFO org.zaproxy.zap.DaemonBootstrap - ZAP is
>>> now listening on
0.0.0.0:8090 <
http://0.0.0.0:8090>*
>>> *...*
>>>
>>> But when I try to access to the application to show the landing page, it
>>> does not responds and the only I can see from the logs is the following
>>> errors:
>>>
>>> *...*
>>>
>>> *137416 [ZAP-ProxyThread-2] WARN
>>> org.parosproxy.paros.core.proxy.ProxyThread - Socket timeout while reading
>>> first message. 150517 [ZAP-ProxyThread-3] WARN
>>> org.parosproxy.paros.core.proxy.ProxyThread - Socket timeout while reading
>>> first message. 167515 [ZAP-ProxyThread-5] WARN
>>> org.parosproxy.paros.core.proxy.ProxyThread - Socket timeout while reading
>>> first message. 180529 [ZAP-ProxyThread-6] WARN
>>> org.parosproxy.paros.core.proxy.ProxyThread - Socket timeout while reading
>>> first message.*
>>> *...*