Window Networking Commands: netstat
Connect with me: Youtube | LinkedIn | WhatsApp Channel | Web | Facebook | Twitter
- Download PDF
- To access the updated handouts, please click on the following link: https://yasirbhutta.github.io/windows/docs/netstat.html
Here are practical tasks for the netstat (network statistics) command in Windows to help you understand and apply its functionality:
- Display All Active Connections
Task: View all active TCP connections on your machine.
Command:
netstat
Goal: Understand which local and remote IP addresses are connected, and observe the connection states.
- Save netstat Output to a File
Task: Save the output of the netstat command to a file for later analysis or reporting.
Command:
netstat -an > netstat_output.txt
Goal: Generate a log of active connections that can be shared or analyzed later.