is my 8080 being listened?
-
13-06-2021 - |
Question
I run the following command on ubuntu 10.10. Could anyone tell me what does the result mean?
ubuntu@ip-XX-XXX-XX-XXX:~$ netstat -nao | grep 80
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN
off (0.00/0/0)tcp6 0 0 127.0.0.1:8005 :::* LISTEN
off (0.00/0/0)tcp6 0 0 :::8009 :::* LISTEN
off (0.00/0/0)tcp6 0 0 :::8080 :::* LISTEN
off (0.00/0/0)
Solution
You have 4 listening open ports. Here, tcp is for Transmission Control Protocol.
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN off (0.00/0/0) - accept all incoming ipv4 connection on port 80.
tcp6 0 0 127.0.0.1:8005 :::* LISTEN off (0.00/0/0) - accept incoming ipV6 connection on localhost loop interface (you can insert packets from localhost only).
tcp6 0 0 :::8009 :::* LISTEN off (0.00/0/0) - accept all incoming ipV6 connection on port 8009.
tcp6 0 0 :::8080 :::* LISTEN - off (0.00/0/0) - accept all incoming ipV6 connection on port 8080.
So, your port 8080 is listening, but on ipv6 stack.