This is an old revision of the document!
Retrieve the ports used by a specific process with the pfiles command.
pfiles `ptree | awk '{print $1}'` | egrep '^[0-9]|port:'