English 中文(简体)
What does "Can not obtain ownership information" in Netstat -ab mean?
原标题:

(Windows 7 x86)

If I run netstat -ab, I get a list of active connections, along with the names of the applications which have opened the connections.

However, some connections (including the one opened by my app) are listed as:

Can not obtain ownership information

Why?

Thanks,

Darren.

问题回答

Run netstat -ano and look at the PID that it is under.

If you add the -o option, you ll see the PID values, and likely it will be PID 4, which is the System PID. This means it is probably a Service. (Note that Windows 7 will report "PID 4", while Windows XP will report "System").

This link gives some ideas of what it might be: https://superuser.com/questions/43307/whys-is-system-process-listening-on-port-80?rq=1

It s probably NETBIOS, if the port used is 137, 138, or 139. On my Win7 system, disabling NETBIOS on all my network adapters from the Network and Sharing Center made the connections disappear from netstat.

I m posting this as a new answer because the other questions linked above are protected, and I can t reply to those answers as a guest. Hopefully this will help people like me who stumble onto this question.

Just went through this lately, just to add to the answers already. Running a .NET webserver, it often happens with incoming web connections. They seem to get PID 0 (System Idle) which is just a holding place for connections. It says "Can not obtain ownership information" for these.

Good description of why its on PID 0, TCP connection owned by pid zero





相关问题
How to do like "netstat -p", but faster?

Both "netstat -p" and "lsof -n -i -P" seems to readlinking all processes fd s, like stat /proc/*/fd/*. How to do it more efficiently? My program wants to know what process is connecting to it. ...

How do I access netstat data in Python?

I m trying to need to access/parse all outgoing connections on a particular port number on a Linux machine using a Python script. The simplest implementation seems to be to open a subprocess for ...

Extract IP from netstat output

The netstat output contains thing like... tcp 0 0 0.0.0.0:80 221.126.149.99:51973 ESTABLISHED 23879/apache2 tcp 0 0 0.0.0.0:80 66.249.68.154:40883 ...

netstat command on a server (winform application)

I m looking for how to recorgnize some server (windows in my case) network configuration (information we obtain using netstat dos command). I have the login and password of the target (server), and ...

Java Connections netstat -ano

I am new to java and I have been testing my application all day long. I just did netstat -ano and it gave me a huge listing of active connections (listening, established) does this mean when i ...

Netstat -ban (or -oan) equivalent in .NET

I d like to know if a particular process is using a given port, i.e. netstat -ban. I came across using IPGlobalProperties to get the list of active connections, but this doesn t seem to include ...

热门标签