find what process using what ip

Post Reply
zemerdon
Site Admin
Posts: 337
Joined: Mon Jan 23, 2023 8:13 pm

find what process using what ip

Post by zemerdon »

You can run lsof -n|grep TCP to know which programs are connecting to which IPs.

Code: Select all

watch "lsof -n|grep -e TCP -e UDP |grep -v -e apache2 -e mariadb" | tee -a ports.txt 
Post Reply