How do I tell where a connection comes from when netstat does not show a PID?

Solution Verified - Updated -

Issue

  • How do I tell where a connection comes from when netstat does not show a PID?
  • Running netstat -p or similar, the PID field contains just -. What is making this connection?
  • How to tell which kernel thread is responsible for opening which socket?

Environment

  • Red Hat Enterprise Linux
  • Network connections

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.