Connections to remote host lsof
Show only sockets talking to a specific peer host/port, both ends matched
lsof -nP -i @<host>:<port>
more lsof
all 19 commands →
Show only sockets talking to a specific peer host/port, both ends matched
lsof -nP -i @<host>:<port>