OT: Determining TCP port ownership

From: Paul Thompson <thompson_at_mail.athenet.net>
Date: Sat Nov 3 18:38:46 2001

On Sat, 3 Nov 2001, Bryan Pope wrote:

> >
> > Hello, all:
> >
> > I'm having a bit of a time with SNMP on my Windows NT box. I'm running the
> > Compaq management agents which use ports 161 and 162. But, when the SNMP
> > service starts, it complains that another program is grabbing the port.
> > Using "netstat -an" tells me that something is grabbing the ports using both
> > TCP and UDP. The TCP address shown is 0.0.0.0.
> >
> > I have no other obvious programs running that would be an SNMP server. Is
> > there a utility that can tell me which executable is grabbing a given port?
> >
>
> I asked a friend and he said to run nmap to do a port scan of your server. It
> is supposed to tell you which ports are open and the names of the programs
> running on said port.
>
> Hope this helps,
>
> Bryan Pope
>

NMAP will tell you the name of the service which is supposed to listen on
that port but will not tell anything helpful like the specific process on
the NT box. It will tell you http on port 80 but not if you're running
apache, IIS or purveyor.

What you need is a utility like unix's lsof, I have one on my NT machine
at work and can find out what it is if still needed.

-- 
Received on Sat Nov 03 2001 - 18:38:46 GMT

This archive was generated by hypermail 2.3.0 : Fri Oct 10 2014 - 23:34:13 BST