[Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 311
  • Last Modified:

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.
0
OPoplawski
Asked:
OPoplawski
1 Solution
 
knowledge021097Commented:
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

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now