How to find what's listening on what port
Matthew Hawkins
matthew at topic.com.au
Thu Oct 11 18:59:36 EST 2001
On Thu, 11 Oct 2001, 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.
Strange, my /etc/services includes:
x11 6000/tcp #6000-6063 are assigned to X Window System
x11 6000/udp
in any case, 'lsof' is a neat tool to tell you what's going on.
In this case, you'd probably call 'lsof -i tcp:6000'
Cheers,
--
Matt
More information about the linux
mailing list