netstat

Old 43BSD and netstat output

Old 43BSD and netstat output On old 43BSD… netstat -f unix Active UNIX domain sockets Address Type Recv-Q Send-Q Inode Conn Refs Nextref Addr 801ca38c dgram 0 0 8008b5c0 0 0 0 /dev/log 801cc10c stream 0 0 8008e690 0 0 0 /dev/printer Address #socket address type #type: stream or dgram Inode #Inode? Conn #sockets connections …

Total answers: 1

How to determine what's listening to port 25 on localhost?

How to determine what's listening to port 25 on localhost? How do I determine what’s running on port 25 below? nicholas@mordor:~$ nicholas@mordor:~$ ss -tlpn sport 25 State Recv-Q Send-Q Local Address:Port Peer Address:Port Process LISTEN 0 100 127.0.0.1:25 0.0.0.0:* LISTEN 0 100 [::1]:25 [::]:* nicholas@mordor:~$ Can I trace this using ps somehow? In the context …

Total answers: 1

Can you widen the columns in netstat, specifically "PID/Program name" …?

Can you widen the columns in netstat, specifically "PID/Program name" …? There is an old post about line truncation in netstat (Netstat output line width limit) but my question is a bit different. I’m using netstat (net-tools 2.10) on Debian 12. My primary use is to list listening ports, e.g. netstat -tunlpWee I find the …

Total answers: 1

Given a service name, get its port number?

Given a service name, get its port number? Hi I feel like this is an obvious question but I haven’t been able to get a good answer so far. Given the name of the service (which I know running on localhost) is there any networking command line tool like (netstat/ss) which will tell me what …

Total answers: 2

Oneliner to get the command which started a process on a certain port

Oneliner to get the command which started a process on a certain port I would need a one-line command which, given a port number, returns information on the command which started the process running on that port. Usually, I get this information by running a sudo netstat sudo netstat -antpv | grep PORT_NUMBER which returns …

Total answers: 1

CLOSE_WAIT not visible on the kubernetes node

CLOSE_WAIT not visible on the kubernetes node Debugging a tcp: out of memory error, I found that a process (from a container) has a lot of connection on CLOSE_WAIT status aka 08 when I cat /proc/XXX/net/tcp But neither netstat or ss were showing those leaked connections. 133: 0E03540A:9D9C 804CC2AD:01BB 08 00000000:00059D7A 00:00000000 00000000 0 0 …

Total answers: 1

how to Find the port number according to PID

how to Find the port number according to PID The following command can be used to find out which process is listening on a particular port: netstat -ltnp | grep -w ‘:8011’ How can we do the opposite, find the port number according to PID number? Asked By: yael || Source lsof is more appropriate …

Total answers: 2

Port 3000 is always being hogged by grafana-server

Port 3000 is always being hogged by grafana-server I need port 3000 free for my dev work. But it’s being used by grafana-server, that I don’t remember ever installing. We do use it within our company so perhaps at some point it has been added to system somehow. Anyway, so I use this command sudo …

Total answers: 3

has netstat been replaced with a new tool?

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? Asked By: MoonManT || Source I use “show sockets”: …

Total answers: 3

Why shows netstat an entry for ipv6 although it 's already disabled?

Why shows netstat an entry for ipv6 although it 's already disabled? I’ve disabled ipv6 according to the description in: http://askubuntu.com/a/484487/229026, (As far I know, this article should also apply to Ubuntu 16.04) but netstat -nautp is still displaying the following entry: tcp6 0 0 :::22 :::* LISTEN 1289/sshd Does this mean that ipv6 is …

Total answers: 2

netstat show port number instead of process name

netstat show port number instead of process name I want to see which port, e.g. postgresql is listening on, so I use: netstat -l But that is trying to be clever and prints the process name instead of the port: Active Internet connections (only servers) Proto Recv-Q Send-Q Local Address Foreign Address State tcp 0 …

Total answers: 1

TCP *:hbci (LISTEN) – What does hbci mean?

TCP *:hbci (LISTEN) – What does hbci mean? I simply open an http server from my terminal (with node) listening on port 3000, which is obviously working if I request localhost:3000 in a browser. Now, I want to see this connection so I use netstat. I’m supposed to see server connection on port 3000, and …

Total answers: 1

"netstat -p"/"ss -p" not showing the process of a listening port

"netstat -p"/"ss -p" not showing the process of a listening port On my CentOS 7, at one point, sudo ss -plt listed a port marked as LISTENING on *:30565, but there was no information whatsoever in the process column of its row. The other listening ports were showing their owning process as usual, like users:(("sshd",pid=1381,fd=3)), …

Total answers: 1

Netstat display wrong process associated to listening port

Netstat display wrong process associated to listening port When I do netstat -tanup as root on my Debian host, process 1/init is displayed for port 993. How is this possible ? I never saw such behavior. The command systemctl list-sockets shows the correct service dovecot associated to port 993. EDIT: I noticed another strange thing: …

Total answers: 2

netstat or alternative in docker ubuntu server 16.04 container

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 in an ubuntu:14.04 …

Total answers: 3

Why is netstat deprecated?

Why is netstat deprecated? I’ve heard many times now that it is, and I’m mostly using ss now. But I sometimes get frustrated with differences between the two, and I would love some insight. Also, I can’t be the only one who thinks of Hitler when using ss. Not a great name. Asked By: onlyanegg …

Total answers: 2

ss not showing all ports being listened on

ss not showing all ports being listened on After doing a ssh -fND 1080 localhost, ssh will listen on port 1080 to provide the SOCKS service: box:~$ netstat -ln|grep 1080 tcp 0 0 127.0.0.1:1080 0.0.0.0:* LISTEN tcp6 0 0 ::1:1080 :::* LISTEN box:~$ ss seems to think otherwise: box:~$ ss -l|grep 1080 box:~$ So how …

Total answers: 1

alternative to "netstat -s"

alternative to "netstat -s" netstat -s prints out a lot of very detailed protocol statistics like number of TCP reset messages received or number of ICMP “echo request” messages sent or number of packets dropped because of a missing route. When in Linux netstat is considered deprecated at nowadays, then is there an alternative? Statistics …

Total answers: 3

Language in netstat output

Language in netstat output I have a program here, that depends on the output of netstat. More concrete: netstat -apn. Here is an example of a normal output. Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN – A client of mine has some other output (as an …

Total answers: 2

Distinguish TCP server from client within netstat output

Distinguish TCP server from client within netstat output I have a socket connection between a client process and a server process, both running on my machine. There are two entries shown for the connection as, sudo netstat -ntp | grep 56442 tcp 1 0 127.0.0.1:56442 127.0.0.1:8002 CLOSE_WAIT 8276/python tcp 0 0 127.0.0.1:8002 127.0.0.1:56442 FIN_WAIT2 – …

Total answers: 2