The netstat is a command to print network connections, routing tables, interface statistics, masquerade connections, and multicast memberships.
$ sudo netstat -tunlp