Computer Networks/Troubleshooting/Tools/Netstat/All
< Computer Networks < Troubleshooting < Tools < NetstatNetstat 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 - version of the Monday, January 04, 2016. The text is available under the Creative Commons Attribution/Share Alike but additional terms may apply for the media files.