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).
Questions tagged [netstat]
217 questions
62
votes
7 answers
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 does it all ( using find , for , powershell)
so that…
Royi Namir
- 5,888
56
votes
17 answers
How do I kill a process that is dead but listening?
I'm developing an app that listens on port 3000. Apparently there's an instance of it still listening to the port because whenever I start it, it can't create a listener (C#, TcpListener, but that's irrelevant) because the port is already…
Srekel
- 681
53
votes
6 answers
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.0.0:* LISTEN …
Pradipta
- 631
30
votes
8 answers
How to use netstat to show what process is listening on a port
I'm on an OS X Mountain Lion laptop and have a couple of Vagrant boxes on it. I'm trying to figure out which process is listening on port 8080. My variations produce like a hundred lines but none with specific port number. I'm assuming something…
timpone
- 965
27
votes
2 answers
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 10.10.99.100 UGSc 0 …
studgeek
- 2,455
27
votes
4 answers
How to kill a particular tcp connection in windows?
On Linux we can kill an Established TCP Connection using tcpkill command.
For example, to drop all connection to/from a particular IP:
tcpkill host ipaddr
Or similary to kill all connection using port 21 at ethernet-1, by:
tcpkill -i eth1…
Johnydep
- 1,155
27
votes
3 answers
How to interpret the output of netstat -o / netstat --timers
netstat -o includes some timer information in the output but I haven't found an explanation of the output in the Timer column anywhere.
Can anybody explain this or point to an explanation?
This ist what the ouptput of netstat -o looks like (on…
sme
- 373
24
votes
4 answers
Do 0.0.0.0:0 and *:* represent the same thing?
I used netstat (in Windows) to view the listened ports for TCP and UDP:
I noticed that in the Foreign Address column, UDP displays *:* instead of 0.0.0.0:0, do these two values represent the same thing? If so, then why does UDP display *:* instead…
user612473
- 251
20
votes
2 answers
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
- 201
18
votes
3 answers
`netstat` command in WSL return empty list
I install python and start python -m SimpleHTTPServer in windows WSL. But the command netstat -an return an empty list. And of course i can't visit the url http://127.0.0.1:8000 in windows browser.
Furthermore, any commands which expose a port like…
WalleZhang
- 181
17
votes
3 answers
how to use netstat on a specific port in Linux
Guys i want to know if my specific port is running a server using netstat? how do i achieve that?
Monkey
12
votes
2 answers
Linux, netstat : how to display the owner of programs using ports?
I'm getting crazy with the command netstat.
In the man we can read that, in the output of Active Internet Connections (TCP, UDP, raw) we should have :
User : The username or the user id (UID) of the owner of the socket.
But when I do
netstat…
Matt C
- 123
11
votes
2 answers
What is the difference between :::: and 0.0.0.0 from the netstat -an output?
I just want to understand the difference between :::: and 0.0.0.0. I believe both are same which let connection from outside if any processor is listening to that port.
udp 0 0 127.0.0.1:123 0.0.0.0:*
udp 0 0…
user1595858
- 211
10
votes
1 answer
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 ports.
What is the 0.0.0.0 address? What is the…
contactmatt
- 1,109
10
votes
1 answer
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-HTTPAPI/2.0
Date: Thu, 09 Apr 2020 08:10:11…
Stéphane Gerber
- 291