Computer Networks/Netstat/All
(Redirected from Netstat/All)
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
editTo prepare for this activity:
- Start your operating system.
- Log in if necessary.
Activity 1 - Display All Active Connections
editTo 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
editTo 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.