Network Statistics
The netstat command shows all the network connections your computer currently has open. Like seeing a list of all phone calls and messages happening on your device right now.
It displays active connections, which ports are listening, and which programs are using the network. Super useful for finding what's connecting to the internet and troubleshooting network issues or security concerns.
Advertisement
[ Insert Google AdSense Banner Code Here ]
See all active network connections your computer is making.
Detect suspicious connections or potential malware activity.
See which ports are open and listening for connections.
Find which program is using a specific port or connection.
netstat Show all active network connections.
netstat -a Show all connections AND all listening ports.
netstat -n Display addresses and port numbers in numerical form (faster).
netstat -b Show which program is using each connection (requires admin).
netstat -ano Show all connections with process IDs (PID) in numerical format.
The netstat -b command requires Administrator privileges to display the executable names associated with each connection.
To run commands as Administrator in the simulator:
runas /user:administrator cmd Request administrator privileges
admin123 Enter the password when prompted
netstat -b Now you can see which programs are using network connections
Real Windows: Right-click Command Prompt and select "Run as administrator" before running this command.
Practice netstat commands in the interactive terminal below: