< Computer Networks < Netstat
Netstat is a command-line tool that displays network statistics on a variety of operating systems. This activity will show you how to use the netstat command to display all active connections (TCP and UDP)
Preparation
To prepare for this activity:
- Start your operating system.
- Log in if necessary.
Activity 1 - Display All Active Connections
To display all active connections:
- Open a command prompt.
- Type netstat -a.
- Press Enter.
- Observe active TCP and UDP connections and listening ports, the local address and port number, the remote name or address and port number if a connection is established, and the connection status.
Activity 2 - Display All Active Connections by Number
To display all active connections by number (IP address) instead of by host name:
- Type netstat -a -n.
- Press Enter.
- Observe active TCP and UDP connections and listening ports, the local address and port number, the remote name or address and port number if a connection is established, and the connection status.
- Close the command prompt to complete this activity.
Readings
References
This article is issued from Wikiversity. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.