Determining a Socket's Owner

Is it possible to determine which process is connected to
a particular socket?  In particular, I'd like to know which
server processes are handling which connections.
OPoplawskiAsked:
Who is Participating?
 
knowledge021097Connect With a Mentor Commented:
This is very system dependant; under modern Unix variants (Linux, FreeBSD, etc) you can use "fuser" to get this information.  If you are looking for code, the source is freely available.

For Operating Systems where you don't have this luxury, look for a program called "lsof", which can do the same thing (and more). Once again, you can examine the source to see how it is done (which varies from system to system).
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.