Questions tagged [ss]
ss is used to dump socket statistics. It allows showing information similar to netstat. It can display more TCP and state informations than other tools.
58 questions
0 votes
0 answers
103 views
I'm trying to resolve "Failed to open cgroup2 by ID" from my socket statistics "ss"
I'm learning to investigate my socket statistics so I do.. sudo ss -tulerp I get the following in the output.. Failed to open cgroup2 by ID Failed to open cgroup2 by ID Failed to open cgroup2 by ID ...
1 vote
1 answer
345 views
Why ss show a port is in use but lsof doesn't?
When I use ss (socket statistics) to show the usages of port 5432 I get: $ sudo ss -ln | grep -E 'State|5432' Netid State Recv-Q Send-Q Local Address:Port Peer Address:...
0 votes
2 answers
328 views
Why using grep for some netstat commands require sudo priv?
System: Ubuntu 20.04.06 net-tools 2.10-alpha grep (GNU grep) 3.4 If I run netstat without sudo I see port information and no process information. This is expected as process information requires ...
7 votes
2 answers
3k views
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 ...
1 vote
1 answer
302 views
ss doesn't display socket info related to the process opening SOL_SOCKET
I run a python code inside docker container performing the following calls import socket as s,subprocess as sp;s1=s.socket(s.AF_INET,s.SOCK_STREAM); s1.setsockopt(s.SOL_SOCKET,s.SO_REUSEADDR, 1);s1....
1 vote
0 answers
2k views
Unable to connect to a listening tcp port 80, Iptables is not blocking it
I am trying to see if tcp port 80 is open on a debian 11 server. I logged into it using SSH and did curl -v telnet://localhost:80. It says connection refused. If I do the same with port 22, it shows ...
-1 votes
2 answers
2k views
how to Find the port number according to PID [duplicate]
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 ...
0 votes
1 answer
473 views
Where in the filesystem can I get metadata about a socket?
I know lsof and ss provide metadata about connections. Where do they get it from? For example, this represents a connection: ls -al /proc/102922/fd/98 lrwx------ 1 me me 64 dic 21 06:06 /proc/102922/...