Tuesday, October 14, 2008

Port associated to Process in Linux

Many times, it's necessary to identify what application has assigned a given port. According to www.linuxquestions.org there are three ways to achieve that:
  • lsof -w n -i tcp:#### 
  • fuser -n tcp ####
  • netstat -anp | grep :####
enjoy it!

No comments: