Netstat (Network Statistics)

Netstat (Network Statistics) is like a network diagnostic tool that shows you what's happening with your computer's network connections - kind of like a traffic monitor for your computer's internet and network activity.

It shows you:

Example Output:

netstat -an

Active Connections
Proto  Local Address      Foreign Address    State
TCP    192.168.1.5:80    216.58.200.4:443   ESTABLISHED
TCP    127.0.0.1:3306    0.0.0.0:0          LISTENING

In this example:

Think of it like a real-time list of:

It's commonly used by network administrators and developers to troubleshoot network issues or check what programs are communicating over the network.