1834149 Members
2158 Online
110064 Solutions
New Discussion

Re: socket

 
SOLVED
Go to solution
Bhoyet Orillo
Occasional Contributor

socket

Is there a way of knowing which process
opened a certain socket connection in the
network connection table?

4 REPLIES 4
Stefan Farrelly
Honored Contributor
Solution

Re: socket


There is - you need to use a tool called lsof. you can download from;

http://hpux.cs.utah.edu/hppd/hpux/Sysadmin/lsof-4.64/

Then when installed run lsof -i | grep and you will see the process.
Im from Palmerston North, New Zealand, but somehow ended up in London...
Rainer von Bongartz
Honored Contributor

Re: socket

lsof is the tool you might use.

if not on your system download from software.hp.com


Regards
Rainer
He's a real UNIX Man, sitting in his UNIX LAN making all his UNIX plans for nobody ...
Tore_1
Regular Advisor

Re: socket

yes, get the free command utility "lsof", and you can for instanse issue lsof -i.

Ceesjan van Hattum
Esteemed Contributor

Re: socket

Use 'man listen'.
Hopefully you know C-programming.
Also have a look at: http://www.ibrado.com/sock-faq/

Regards,
Ceesjan