Operating System - HP-UX
1819984 Members
3717 Online
109608 Solutions
New Discussion юеВ

how to check which process is using which port#???

 
Kenneth Leung_2
Frequent Advisor

how to check which process is using which port#???

I encountered a production problem that our sybase server can't establish connection at port# 4100. From netstat, there are lots of connection at port# 4100 with "WAIT" status. How can I know which OS process is occupying port# 4100 so that I can kill them to release the port#?? Please help. Thanks a lot
2 REPLIES 2
Rajeev  Shukla
Honored Contributor

Re: how to check which process is using which port#???

Use lsof to find that
lsof|grep TCP will give you all the TCP connections made to the system
Ivan Krastev
Honored Contributor

Re: how to check which process is using which port#???

Hi Kenneth,

you can check with lsof :

lsof -i TCP:4100

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

regards,
ivan