Back to commands

Connections

netstat -an

Display all active network connections with numeric addresses.

Explanation

Netstat -an shows connections and listening ports using numeric addresses. It is useful when DNS lookups slow down output or when you need exact IP and port values.

Syntax

netstat -an

Show numeric connections

TCP    0.0.0.0:80         0.0.0.0:0          LISTENING
TCP    192.168.0.27:5050  142.250.190.14:443 ESTABLISHED

Look for unexpected listening services or blocked ports.

Related Guides

Related Tools