How to find what's listening on what port

Drake Diedrich dld at coyote.com.au
Thu Oct 11 19:23:18 EST 2001


On Thu, Oct 11, 2001 at 06:21:35PM +1000, Mark Hummel wrote:
> Hi, 
> 
> The output of netstat -A yields the following line:
> 
> tcp        0      0 *:6000                  *:*                     LISTEN 
> 
> How do I discover what is listening on that port? It does not appear in
> /etc/services. 

   The answer is X, but the way is

fuser -n tcp 6000

   You should probably limit X to local connections only, and let ssh do the
forwarding.  X -nolisten tcp in the startup script or Xsessions files.




More information about the linux mailing list