Useful Netstat Commands on Windows & Linux & MacOS

How to export the network connections with process names


NETSTAT on Windows

netstat -p TCP -abno


#it will give the TCP connections with Process IDs(PID) by matching with the process names.


NETSTAT on Linux

netstat -tnp


#it will give the TCP connections with Process IDs(PID) by matching with the process names.


NETSTAT on MacOS

netstat -p TCP -bnv


# The best netstat command on Mac :) to see connections with PIDs, sending/receiving bytes








Comments