netstat(8) -tunlp
Print network connections, routing tables, interface statistics, masquerade connections, and multicast memberships
--numeric , -n
    Show numerical addresses instead of trying to determine symbolic host, port or user names.
-l, --listening
    Show only listening sockets.  (These are omitted by default.)
-p, --program
    Show the PID and name of the program to which each socket belongs.
source manpages: netstat