0

I am trying to listen to port 8080 using netcat. It was working fine, suddenly I an getting this. Any idea?

root@kali:~# nc -vv -l -p 8080
retrying local 0.0.0.0:8080 : Address already in use
retrying local 0.0.0.0:8080 : Address already in use
retrying local 0.0.0.0:8080 : Address already in use
retrying local 0.0.0.0:8080 : Address already in use

migrated from security.stackexchange.com Jan 13 at 21:48

This question came from our site for information security professionals.

1

Some other process is using the port. use ps command to find the list of running processes it would list the list of active processes and also command name. Find and kill the process responsible for using the port 8080.

2

TL;DR This means another service is using that port, and only one service at a time can use that port. Could be your web browser, proxy, or a couple other possibilities. You can use netstat -an | grep 8080 to see what else is running on that port.

Try listening on another port, such as 4444.

Port 8080 is usually reserved as a sort of secondary HTTP port, or for web proxies (e.g. Burp Suite).

0

Doesn't that mean that this port is currently used, try

netstat -antp

to see what is using the port 8080

using other port may help you to not enter in other problems

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.