Questions tagged [netstat]

Netstat (network statistic) is a tool, common to Windows, Unix and Linux, used to obtain information about network connections (outbound and inbound), routing tables, and a range of information on the use of statistics the network interface. Netstat.exe command line that shows all open ports for Transmission Control Protocol (TCP) and User Datagram Protocol (UDP).

Filter by
Sorted by
Tagged with
50 votes
6 answers
53k views

What is ::: in the Local Address of netstat output?

This is the output of netstat -tulpn that I get: tcp 0 0 127.0.0.1:2208 0.0.0.0:* LISTEN 2055/hpiod tcp 0 0 127.0.0.1:631 0.0....
Pradipta's user avatar
  • 601
27 votes
2 answers
37k views

How does Mac OSX prioritize network interfaces when routing?

To give a concrete example, how does OSX choose which of these default entries from netstat -nr to route to? Destination Gateway Flags Refs Use Netif Expire 0/1 ...
studgeek's user avatar
  • 2,415
9 votes
1 answer
12k views

Netstat -a command : Difference between 0.0.0.0 and 127.0.0.1

When running netstat -a on my local machine, i see ports on the 0.0.0.0 address listening. I would assume that 0.0.0.0 is my local machine, except that i also see 127.0.0.1 listening to specific ...
contactmatt's user avatar
  • 1,079
6 votes
2 answers
23k views

Why does explorer.exe has an established connection to a microsoft server?

This seems a bit odd. Using netstat -a -b -n I've found the following: TCP 192.168.1.X:1150 157.56.124.76:443 ESTABLISHED [Explorer.EXE] It turns out that the ip 157.56.124.76 which resolves to ...
Odys's user avatar
  • 1,621
1 vote
1 answer
2k views

Listen for incoming request on port on Linux, then run command

I am after as lightweight as possible solution to listen on a port for a specific request, then run a command should the port be hit and the correct request be recedved. Eg. Send a request to 192.168....
Elliot Reed's user avatar
61 votes
7 answers
292k views

netstat with process name?

Using netstat -a -o -n I can get the list of ports and PID then I need to go to task manager and add the PID and see who is it. (pretty frustrating) I was wonder if there is a CMD command which ...
Royi Namir's user avatar
  • 5,748
18 votes
2 answers
29k views

Why UDP does not show LISTENING in the state column in netstat?

TCP shows LISTENING in the state column while UDP does not show anything: Is it because UDP has only one state (which is LISTENING) so there is no need to show it, or is there another reason?
user613132's user avatar
10 votes
1 answer
4k views

Port 9001 used by Microsoft-HTTPAPI/2.0

The port 9001 seems to be used by Microsoft-HTTPAPI/2.0. I get this from the browser doing a http://localhost:9001/ HTTP/1.1 404 Not Found Content-Type: text/html; charset=us-ascii Server: Microsoft-...
Stéphane Gerber's user avatar
5 votes
3 answers
20k views

Powershell one-liner to show process on same line as port using netstat issue

First I just want to make sure user Erik Bitemo gets credit for the original code I'm using here. The output is what I'm looking for with one exception: One of the ports disappears and "System System5"...
ex28's user avatar
  • 81
4 votes
1 answer
8k views

The meaning of port 0 in netstat output

What is the meaning of port 0 in netstat -an output in Windows? I'm asking about socket in Foreign address column: 0.0.0.0:0 I know that 0.0.0.0 address means, that host is listening on all ...
Rafał Ryszkowski's user avatar
2 votes
3 answers
7k views

Is the same port acting as both client and server?

i find something strange in this netstat output. the output is taken using netstat -a -n -o -p TCP command on win 7. Proto Local Address Foreign Address State PID TCP ...
inquisitive's user avatar
2 votes
3 answers
4k views

Meaning of netstat output?

When I type "sudo netstat -an", this is part of the output I get: Proto Recv-Q Send-Q Local Address Foreign Address State tcp 0 0 192.99.202.17:39922 ...
Henley Wing's user avatar
1 vote
3 answers
35k views

Strange entries in Netstat output

Out of curiosity, I ran Netstat on my Windows PC, and I found some strange entries like: xx-fbcdn-shv-01-amt2:https edge-star-mini-shv-01-frt3:https mil04s03-in-f10:https xx-fbcdn-shv-01-amt2:https ...
user avatar
1 vote
2 answers
1k views

Batch Capture incoming Netstat IPs as variable

I'm trying to figure out if there is a way I can capture (and if possible, log) the ip addresses displayed from 'netstat' command. I'm trying to make a script that waits for a ping from a specific ...
user23412's user avatar
1 vote
1 answer
1k views

PID 4 Using Port 80 - IIS Unable To Bind

So I've been having a problem where I can't use localhost:80 on IIS So I ran this: > netstat -ano | find "0:80" And got: TCP 0.0.0.0:80 0.0.0.0:0 LISTENING 4 ...
Matt Cowley's user avatar