list service with port number

Hi all,
I want to list all service is running now with the specific port number

"netstat" should be your friend...

#netstat   -an
#netstat   -an   |    grep    service

very thanks for your support
but i want to list all service that already running and its port
not a specific service
i guess netstat don't do that
after my searching i found script do that
***********************************************
#!/bin/ksh

line='---------------------------------------------'
pids=$(/usr/bin/ps -ef | sed 1d | awk '{print $2}')

if [ $# -eq 0 ]; then
read ans?"Enter port you would like to know pid for: "
else
ans=$1
fi

for f in $pids
do
/usr/proc/bin/pfiles $f 2>/dev/null | /usr/xpg4/bin/grep -q "port: $ans"
if [ $? -eq 0 ]; then
echo $line
echo "Port: $ans is being used by PID:\c"
/usr/bin/ps -ef -o pid -o args | egrep -v "grep|pfiles" | grep $f
fi
done
exit 0
***********************************************
but you should give the port number to this script
if i don't know the port number and i want to make a port scan for all port that already open and matched with particular service
so is there any command do this or not

Script whohassocket -very usefull tool

Tool for list processes and ports in Solaris

hi ikorolev
very thanks this is a wonder fill script