I got three ways in this post

  • netstat
  • fuser
  • lsof

netstat

sudo netstat -nlp

lsof

lsof -i tcp:43796

fuser

fuser 43796/tcp

References