user@fony:~$ netstat --inet -anp | grep 6543 (Not all processes could be identified, non-owned process info will not be shown, you would have to be root to see it all.) tcp 0 0 0.0.0.0:6543 0.0.0.0:* LISTEN - tcp 30 0 127.0.0.1:6543 127.0.0.1:51965 CLOSE_WAIT - tcp 30 0 127.0.0.1:6543 127.0.0.1:51964 CLOSE_WAIT -