Skip to content

Network

1. Network

To find out the TCP connections of a running process, we first look up the process ID.

ps aux | grep myprocess
153094    myprocess.jar

To obtain the connections associated with that process:

lsof -i -a -p 153094