in reply to running but not listening

Just a few suggestions.

You could try using to list the listening sockets. However, you need some extra options because by default, netstat may list only connected sockets. On linux, try netstat -paAinet, on solaris, netstat -afinet.

Also, you may just need a program like netcat or nmap.