How to Find Out Who or What is Listening on that Port (linux)

This comes up every now and then, and it is one of those commands that is hard to remember. There are a number of ways to do this, but this one is easy. It has to be run by root, though.

netstat -lnptu | grep theportnumber

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.