![Adguard raspberry pi](https://cdn3.cdnme.se/5447227/9-3/1_64e61dfaddf2b33c615a3cd3.png)
It can show you routing tables and statistics about your network interfaces and multicast connections. Meaning, it tells you which ports are in use and which processes are using them. The netstat command lets you discover which sockets are connected and which sockets are listening. They simply define the role of each socket at each end of the connection. These names have nothing to do with hardware or computer roles. The listening socket is called the server, and the socket that requests a connection with the listening socket is called a client. There are other states, such as the state when a socket is midway through establishing a connection on a remote device, but putting transient states aside, you can think of a socket as either being connected or waiting (which is often called listening). Sockets have two main states: They are either connected and facilitating an ongoing network communication, or they are waiting for an incoming connection to connect to them.
![Adguard raspberry pi](https://cdn3.cdnme.se/5447227/9-3/1_64e61dfaddf2b33c615a3cd3.png)