The classical unix command is
netstat -an
lsof -i
An alternative is
pfiles /proc/* | ggrep "\(^[0-9]\|INET\)" | grep -v INET6
or
fuser