Who's using my port in AIX

Hello Gurus,

I was trying to find who's using my port and got below answer from a IBM website. But the problem with the below answer is I need a root to run the rmsock, is there any other alternative to find out who is using my port with out a root access??

 
1. netstat -Aan | grep <port number>
- This shows if the specified <port number> is being used. The hex number in the first column is the address of protocol control block (PCB)
 
2. rmsock <addr of PCB> tcpcb
- This shows the process who is holding the socket. Note that this command must be run as root.

Thanks in advance.

lsof - you might have to install it. The answer from IBM sounds good though, just checked it out. Didn't know that one :slight_smile: