How to list open ports on Solaris

The classical unix command is

netstat -an
  1. better tool is
lsof -i

An alternative is

pfiles /proc/* | ggrep "\(^[0-9]\|INET\)" | grep -v INET6

or

fuser