Suppose the PID of the process is already known
The State column specifies the connection's state when the Netstat command executed. The PID column shows the process identifier (PID) associated with the TCP connection. The PID is the information you're. after, but few people can identify a process by its PID.
You can use the command below:
lsof -i -P |grep pid
netstat --all --program | grep '3265'
--all
show listening and non-listening sockets. --program
show the PID and name of the program to which socket belongs.You could also use a port scanner such as Nmap.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With