There are many possibilities, but perhaps the most friendly command is: netstat -natp
netstat -natp
View the discussion thread.