Dave's Brain

Browse - Computer Tips - How can I find what's listening on a certain port?

Date: 2016sep16
OS: Linux

Q.  How can I find what's listening on a certain port?

A.  Use lsof (list open files) and grep for the port.
For example:

lsof -P | grep 8080
The -P option tells lsof not to convert the port number into a name.

Add a comment

Sign in to add a comment
Copyright © 2008-2017, dave - Code samples on Dave's Brain is licensed under the Creative Commons Attribution 2.5 License. However other material, including English text has all rights reserved.