Finding the process id of the process using the ports

Hi
Any idea how to get the process id of the process using the ports

lsof -i :portnumber does not work in my machine. I am on sun Solaris SPARC.

Any suggestion is highly appreciated

You can try a guess via netstat -a and /etc/services and then compare with a ps, but to get a precise info I'd install lsof.