How To Troubleshoot Network Connections Using Netstat

1

Display active internet connections, routing tables, interface statistics, and protocol statistics. Shows basic network information.

netstat
2

Display all listening and established network connections, including UDP and TCP. Shows detailed network information.

netstat -tuln
3

Display all established TCP connections, including the process ID and name of the program using the connection.

netstat -atp | grep 'ESTABLISHED'