Nettacker icon indicating copy to clipboard operation
Nettacker copied to clipboard

Unable to connect to server

Open mem601591-oss opened this issue 1 month ago • 2 comments

I use Debian linux the latest version on firefox and docker works fine, but when trying to access https://localhost:5000/ or https://nettacker-api.z3r0d4y.com:5000/ it is unable to establish a connection as it says "Unable to connect" I am not sure if this is a problem with only me or any other Debian linux users but please fix soon, otherwise tell me if I am doing something wrong

Workflow:

git clone https://github.com/OWASP/Nettacker cd Nettacker docker-compose up

mem601591-oss avatar Oct 05 '26 01:10 mem601591-oss

Hi! A likely cause: if the image build fails or hasn't finished, nothing listens on port 5000, so both URLs give "Unable to connect" (nettacker-api.z3r0d4y.com just points to 127.0.0.1). When it's running correctly, the API serves HTTPS with a self-signed certificate, so the browser shows a security warning you can click through instead.

When I tried the same steps, my build actually failed at the apt-get update step because of a network error, and in that case the API never starts.

Could you share:

  1. The last ~20 lines of your docker-compose up output (does it ever print Running on https://0.0.0.0:5000?)
  2. The output of docker ps while it's running
  3. docker-compose --version

saisiddi avatar Oct 05 '26 09:10 saisiddi

@mem601591-oss Perhaps you have something else running on port 5000 already?

This is what you should see after docker-compose up has finished:

Image

You can then navigate to https://localhost:5000 and see the Nettacker login screen (Firefox will give you a warning first that the SSL certificate is not trusted - click on Advanced and proceed) :

Image Image

you can also pull the image from Docker Hub and start it in API mode like this:

docker run -p 5000:5000 owasp/nettacker --start-api

^does this work for you?

securestep9 avatar Oct 06 '26 20:10 securestep9