Finding the process that is using a certain port in Linux: lsof and netstat

  1. use command lsof

    lsof -i tcp:9527

will give you the list of processes using tcp port 9527.

  1. Alternatively,

    sudo netstat -nlp

will give you all open network connections.

Written on November 2, 2014