analysis tool for statistics about active connections, open sockets, routing tables; in general the networking subsystem.
Questions tagged [netstat]
73 questions
170
votes
8 answers
How to check opened/closed ports on my computer?
How to check the opened/closed ports on my computer?
I used netstat -a on command line.
Does the port status "LISTENING" indicate that the port is open?
Is any port, that is not shown in the output, closed?
Router
- 2,341
110
votes
3 answers
netstat or alternative in docker ubuntu server 16.04 container
Was netstat removed in 16.04? Is there an alternative to netstat available in 16.04? Or how do I install netstat in 16.04?
I am running an ubuntu:16.04 container in docker for Windows, it seems that netstat is no longer available... It is available…
Duncan Gravill
- 2,325
54
votes
2 answers
What's the difference between port status "LISTENING", "TIME_WAIT", " CLOSE_WAIT" and "ESTABLISHED"?
I use netstat to check my port status.
I was wondering what's the difference between port status LISTENING, TIME_WAIT, CLOSE_WAIT, FIN_WAIT1 and ESTABLISHED?
Router
- 2,341
51
votes
2 answers
netstat: command not found
I installed xampp to run a server as part of a guide, but it wasn't working. After trying to run it from command line, I got the following output:
$ sudo ./xampp start panel
Starting XAMPP for Linux 8.1.6-0...
XAMPP: Starting…
Dr-Bracket
- 2,267
51
votes
3 answers
has netstat been replaced with a new tool?
Has netstat been replaced by a newer program?
I noticed netstat is part of the nettools package which was replaced by ip command.
What program should i be using to check see open/listening ports on my local computer?
MoonManT
- 725
18
votes
1 answer
How to find the running network services and the port and user
I want to find a list of all network services running on my system, including details of the port and services and the users.
I know that I need to use netstat, ps and fuser. but I don't know how to write the command.
Do I need to write a shell…
Mohammad Nikkhou
- 217
15
votes
4 answers
Strange connections by gvfsd-http --spawner
For a little while now, a strange connection has been showing up on my netstat made by the command:
/usr/lib/gvfs/gvfsd-http --spawner :1.1 /org/gtk/gvfs/exec_spaw/2
By the time I notice it, the connection is always at the closed state. Every time…
mloman
- 1,017
11
votes
1 answer
How to show listening ports and TCP connections to the ports
Does anyone know what exact netstat commands in Ubuntu Server to use to show:
Ports listening on on the server
Current TCP connections to those ports
fantamoja
- 143
9
votes
2 answers
Format of IPv6 addresses in the netstat output
When I use netstat -n, it won't display the whole IPv6 addresses. The local ip address is in this format xxxx:xxxx:xxxx:xxxx:portNum, so just a part of the address is displayed. Also the foreign addresses aren't displayed in the full format. Why is…
sykatch
- 193
9
votes
3 answers
What does the -tulpn option mean for netstat?
For finding out which ports of the machine are being opening by which services, I used:
netstat -tulpn
I checked the man page for netstat command, but I found nothing about this option. What's the meaning of the -tulpn option?
Mohi Rostami
- 291
7
votes
4 answers
Get current ssh session's originating IP without being superuser
I am trying to find out the current ssh session's originating IP address. I found the following to be useful, but it requires sudo:
$ sudo netstat -tapen | grep ssh | awk '{ print $5}' | sed…
Tfb9
- 681
6
votes
1 answer
Something is listening on port 53
I want to set up bind9, but something is listening on port 53. It's local address is ubuntu.ubuntu-do:domain. How to disable it, so it wouldn't listen anymore? I think it is dnsmasq, but still I don't know hot to disable it.
fufs
- 61
4
votes
1 answer
A strange path is being printed for an entry when netstat command is used?
When I used the netstat -a command to check for active connections, I encountered this entry under active unix domains sockets(servers and established)
Proto Refcnt Flags Type State I-node Path
unix 2 [ ] …
ddehhiorrty
- 41
4
votes
2 answers
Difference between netstat and ss and how to convert commands?
what's the equivalent using ss command ?
netstat -antp
netstat -lntp
what's the difference if we use ss with no hyphen and with ss -a ?
what does this command do for us ss -antlp ?
Ven Ven
- 67
3
votes
1 answer
What does 'unix 3 [] STREAM CONNECTED 438037 29037/python' mean?
I'm using netstat to monitor my Ubuntu server and I've found things as below:
tcp 1 0 localhost:48604 localhost:11311 CLOSE WAIT 29511/st
atic transf
tcp 0 0 localhost:50810 X86U145:35723 ESTABLISHED…
Yves
- 1,358