Find port number being used by a given process id

Unix gurus,

I have a requirement wherein I want to find the port number for a given process id.

Is it possible? If so how?

TIA,

Regards,

Praveen

check this

Yogesh, Thanks for your suggestions.

But I have some limitations:

  1. I don't have lsof installed.

  2. I know the process id using which I want to find the port number not the other way round.

I am on Solaris 10.

TIA,

Regards,

Praveen

Check out pfiles

tom de