When I use netstat -tup, it only shows the processes for some. There are other ports that just have a - for PID, so how would I find out what process is listening on these ports?
When you display this list, for lines that have no process name, can you check the state of the tcp socket?
If it is a closing socket, the process may have disconnected and the TCP Stack might be just cleaning up the connection.
Secondly, are you running the
netstat command with
If you do not have rights to the process, its name will not be listed.
Actually, if that happens, most netstat versions will show a warning about this before listing the output.