netstat

Network Statistics

What Does It Do?

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 ]

When Should I Use It?

View Active Connections

See all active network connections your computer is making.

Security Monitoring

Detect suspicious connections or potential malware activity.

Identify Open Ports

See which ports are open and listening for connections.

Application Troubleshooting

Find which program is using a specific port or connection.

Common Commands

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.

Administrator Privileges Required

The netstat -b command requires Administrator privileges to display the executable names associated with each connection.

To run commands as Administrator in the simulator:

1.
runas /user:administrator cmd

Request administrator privileges

2.
admin123

Enter the password when prompted

3.
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.

Try It Yourself

Practice netstat commands in the interactive terminal below: