About
Netstat (network statistics) is a command-line tool that displays network connections (both incoming and outgoing), routing tables, and a number of network interface statistics.
Installation
On Linux, netstat is part of the net-tools package
apt-get install net-tools