Unix Blog

Friday, April 8, 2011

Who is using the port?

Find which process is using tcp port

Linux
netstat -anp | grep LISTEN

AIX
lsof -i:portnumber
The above command will list the processes and pids.
grep using the pid to know the config
ex: ps -ef | grep httpd | grep pid

Windows
netstat -an |find /i "listening"
netstat -an |find /i "9443"

netstat -no
netstat -ao
netstat -a

posted by Jayanthi Krishnamurthy @ 11:57 AM   0 Comments

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home

Newer›  ‹Older

About Me

Name: Jayanthi Krishnamurthy

View my complete profile

Posts

  • Who is using the port?

Older Posts Newer Posts

Archives

Subscribe to
Posts [Atom]