This is usually not a ZAP problem. Is your web application actually running? Can you connect to it using the IP address rather than the FQDN or hostname? Can you connect to your application from the same machine using another tool like curl? If you are using one of the ZAP Docker images then be aware that using Docker will change the networking. In this case make sure that you run curl from the Docker image, e.g. using a command like:| Frequently Asked Questions on ZAP
The world’s most widely used web app scanner. Free and open source. ZAP is a community project actively maintained by a dedicated international team, and a GitHub Top 1000 project.| www.zaproxy.org
ZAP can now automatically detect and configure itself to handle common authentication mechanisms.| ZAP