How do I find out which service is listening on a specific port?

Updated -

A list of the services and their standard ports can be found in the file /etc/services. There is also a full list of the port numbers in this site as assigned by the Internet Assigned Numbers Authority: http://www.iana.org/assignments/port-numbers

Commands that can be run on the localhost:

# lsof -Pnl...

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.