Questions tagged [netstat]

analysis tool for statistics about active connections, open sockets, routing tables; in general the networking subsystem.

Filter by
Sorted by
Tagged with
1
vote
0answers
14 views

socket statistics (ss) program weird ipv6 listening socket address format

I have two services listening on TCP/IPv6 sockets, ssh and mysql. ss shows this: $ ss -tl6 State Recv-Q Send-Q Local Address:Port ...
0
votes
0answers
15 views

What is the equivalent of netstat -s with the ss command? [duplicate]

I am trying to debug network errors on a container running in kubernetes. I don't have root or sudo, so I am trying to use the ss command. netstat would be better but I can't install it. I am trying ...
0
votes
0answers
55 views

How does netstat find ESTABLISHED connections

If I perform an operation that establishes a TCP connection (e.g., an HTTP connection), the first thing that happens is that the 3-step TCP handshake is made. If I then use netstat, it shows me that ...
0
votes
1answer
31 views

loop using grep and adding to file

I am trying to loop a netstat and grep the results by some values, and then if they match- add them to a file, but it doesnt do a grep, but just adds the whole file: #!/bin/bash while true do sudo ...
0
votes
1answer
26 views

Netstat doesn't show URLs while streaming from Youtube

Learning about networks and trying to make sense of netstat output. This is the main confusion: When I run the command, there are no known URLs. For example, I'm listening a Youtube streaming and was ...
0
votes
1answer
22 views

Netstat Killing Bash Process [duplicate]

I have a bit of bash script like this: echo "Number of Connections: " Conns=$(netstat -an | grep -c ‘8800.*OK’) echo "Done" It appears to stop processing after netstat. The ...
0
votes
0answers
29 views

how to find out what IP makes most requests over X amount of time

I'm having some trouble finding out the right IP adresses that make requests to my webserver. I have x amount of users that make genuine requests, and get the service. But there are also some idiots ...
0
votes
1answer
74 views

What is the modern equivalent to netstat -peanut

I heavily rely on viewing output of netstat as in sudo netstat -peanut Active Internet connections (servers and established) Proto Recv-Q Send-Q Local Address Foreign Address State ...
-1
votes
1answer
93 views

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 ...
0
votes
0answers
65 views

ss showing socket stuck in SYN-SENT with no traceable PID

On a client I see the following: [root@redacted_local ~]# ss | grep -i syn SYN-SENT 0 1 redacted_local_ip:792 redacted_server_ip:nfs ...
-1
votes
1answer
37 views

what are the options to close manual the port correctly or release the port on rhel machines?

we have redhat 7.5 server we are suspect that port 50070 not closed correctly by the service , ( we check by netstat and PID not found ) but from the log we can see that port is in use so we try to do ...
-2
votes
1answer
73 views

linux + port in use + but no PID return from netstat to kill the PID

we have Hadoop cluster - the linux are rhel 7.5 machines and namenode is using the port 50070 we can see from the log that port 50070 is in use but the interesting thing is that when we do netstat -...
1
vote
1answer
49 views

Configure static routing for the virbr0 using local interface as next hop

Having the following topology: hostA(virbr0: 192.168.122.1) -- TAP interface -- (eth0: 192.168.122.85) gw (eth1: 192.168.3.51) --- (LAN: 192.168.3.0/24) gw : QEMU VM Guest, that is acting as a gateway ...
0
votes
2answers
44 views

Does netstat -l include anything that netstat -a does not have?

I am using Ubuntu 16.04, but I believe my question applies to many distros, such as Debian, CentOS, and Red Hat. The manpage for netstat -l is: Show only listening sockets. (These are omitted by ...
0
votes
0answers
39 views

How to refresh IP address after changing from Ethernet to Wifi or vice versa

I need your help to find out how I can make the new IP address configured to be the one seen in netstat. My box is connected to eth1 dynamically. Everything is working fine. I switched to WiFi with ...
0
votes
2answers
27 views

How can I confirm which process is connect to remote port?

My loacl server IP is 192.168.122.100, and remote server IP is 192.168.122.50. I need to kill all processes which connect to 192.168.122.50:56666. By executing ss comand, I found there are three TCP ...
1
vote
2answers
245 views

'ss' shows multiple listening pids for same port

We have sh scripts using 'netstat' in our production code. We use command 'netstat -lntup' to retrieve all the pids which are listening to some port. I replaced the command with 'ss -lntup. Now, for ...
0
votes
1answer
73 views

How do I parse information from netstat?

How do I extract the following from the output of netstat -anp? remove ip address remote port local application name local port PID I need this information to run in my conky. It shows everything, ...
4
votes
2answers
344 views

What is the alternative of netstat in linux? [duplicate]

'netstat' is deprecated for Linux os. So I am looking for the right alternative of the 'netstat', So what will be right alternative for netstat? I found out one 'SS' command but it is not sufficient ...
1
vote
0answers
79 views

How to monitor a UDP specific port/socket?

I have an application that receives UDP packets at port 5000. In order to be 100% sure that the application is receiving all packets (for example the RX buffer could be full and some packets could be ...
0
votes
1answer
172 views

what does mean 0.0.0.0:22 under the column local address of netstat command?

Under the column "local address" of netstat: 0.0.0.0:22 means that access to port 22 is allowed from any ip addresses. which ip addresses? ip addresses within my local network or outside my local ...
1
vote
1answer
72 views

How to block a service (xrdp) from using a specific port?

I'm admin for some devs and they requested that a port on a machine be clear for a specific purpose. When one of the devs went to use that port, it was in use. An netstat -p showed that xrdp/Xnvc was ...
0
votes
0answers
35 views

Running netstat on 2 servers checking connections to the other one shows mismatch in number of connections

If I check how many connections serverA (192.168.1.1) has open to serverB (192.168.2.1), I get the following response: [username@serverA ~] $ netstat -n | grep 192.168.2.1 tcp 0 0 192.168....
0
votes
2answers
123 views

Closing a port listening on a local host

How do i close a port listening on a local host in CentOS7? So far I have used the below command to find the process id sudo netstat -tlpn | grep 5601 Then, used the below command to kill the ...
0
votes
0answers
31 views

The output of netstat -an show several lines twice

Why the output of "netstat -an" shows several lines twice (48035 and 48036)? netstan -an udp 0 0 0.0.0.0:48120 0.0.0.0:* udp 0 0 0.0.0.0:...
0
votes
0answers
96 views

SSH through multiple servers (to access visdom server)

I am hosting a visdom server (essentially I need to access a website hosted locally) on my home computer. I am running code on a server (private_server) that I cannot access directly from my home ...
1
vote
1answer
77 views

How to not show localhost in ss output?

When I type ss -atur I get lots of connections, but most are destined for localhost and I don't really care about those. How can I filter the output to not show connections with destination localhost?...
0
votes
0answers
93 views

reset netstat values

Is it possible to reset(to zero) the following nestat values without restarting the server? [root@myPC myfolder]# netstat -suna IcmpMsg: InType3: 1915261 InType8: 297 OutType0: 297 ...
0
votes
0answers
14 views

Is there a way to increase the 'Foreign Address' Field in 'netstat -tup'

OK, my question is completely in the title. Is there a way to increase the 'Foreign Address' Field in 'netstat -tup' ? (for those who never used -tup, it is the same like -tupn but resolving the ...
1
vote
1answer
375 views

What is this : ^[3;J^[H^[2J?

I am on a Debian system fresh installed, logged in via ssh on /dev/pts/0, and have entered the following command watch -n 10 clear > /dev/pts/0 ; netstat -tupn 2>/dev/null | grep -v 3306 > /...
0
votes
1answer
26 views

is it possible to check the time that l application start to using port and established

From the following netsta we can see that Air_metal application is using port 50070 and established # netstat -anp | grep :50070 | grep ESTABLISHED tcp6 0 0 100.14.74.11:48148 100.14....
0
votes
0answers
70 views

Show ports in hexadecimal for netstat or ss command

I am trying to format the output of netstat or ss command in bash terminal. I need to convert the port numbers to hexadecimal. Currently they are shown in decimal by default. Is there any option in ...
0
votes
1answer
83 views

AIX netstat -a proto column

Greetings everyone, I am looking at the output of the "netstat -an" output on an AIX 7 server and the proto column has confused me a little bit. First, the output: Active Internet connections (...
0
votes
1answer
192 views

Many Send-Q have packets TCP connections, is this abnormality? what caused this?

The 125.193.242.25 is a CDN node, and when I analyze the TCP connect, there shows below information: [root@hkk10 ~]# netstat -na Active Internet connections (servers and established) Proto Recv-Q ...
2
votes
0answers
66 views

ss is slow when process option (-p) used

When checking for process listening on port using ss command, it's slow when compared with (obsolete) netstat command. $ time ss -nlp | grep -E ':8081|:8007|:8010' LISTEN 0 100 ...
1
vote
1answer
171 views

What does the reordering field of ss --info mean?

ss --info returns information about tcp connections. It produces a line simliar to the following (some fields removed for formatting) tcp ESTAB 0 0 192.168.1.177:60236 54.70.141.88:...
0
votes
2answers
59 views

Find the short-lived process that is polling my port?

I've noticed one of the headless computers in my network is constantly polling the VNC port on another computer. My problem is, that when I see the port from which it has connected (with tcpdump) and ...
1
vote
1answer
187 views

IGMPv3 Source Filtering Configuration

I know that multicast addresses are being kept in /proc/net/igmp. Where is the configuration for v3 source filter being kept? Please note that I do not wish to inspect actual IGMP packets, I wish to ...
-7
votes
1answer
82 views

Strange logs in Linux [closed]

I ran sudo lsof -i :80 on port 80 to check what is port 80 listening to and I got the output bellow. I dont understand what this means. It seems like some program is running on our server and using ...
-1
votes
1answer
252 views

How do I get my terminal to show the entire output of my command?

terminal command: watch netstat -nalp I get an output, but I am not able to scroll down to see the majority of the output. I can only see as far down as I extend the bottom of the terminal (box). I ...
8
votes
0answers
1k views

What network connections are not seen by netstat/lsof/ss?

Network monitoring tools ss, lsof -i, netstat -ltupw and similar have limitations like namespace and thus they don't show the whole machine connections. (for namespace created with ip we can see other ...
0
votes
1answer
52 views

app.asar --nod ? What programme is it (in my netstat statistics?

What is app.asar --nod? jerzy@jerzy:~$ sudo netstat -tupln [sudo] password for jerzy: Active Internet connections (only servers) Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program ...
1
vote
0answers
412 views

What does the inode column in netstat signify?

Issuing the command, netstat -pulet, there is an inode column that appears, and so issuing a find command I found that it links to inodes in the /sys/kernel/slab/cgroup/<...> section. For ...
0
votes
0answers
242 views

netstat command for popular IP addresses OK in CentOS 6, fails in CentOS 7

In CentOS 6 w/ OpenVZ 2.6.32, this command outputs IPs with the highest number of connections against port 22, e.g: [root@legovz ~]# netstat -antu | grep :22 | grep -v LISTEN | awk '{print $5}' | cut ...
1
vote
1answer
429 views

Why does postgresql server have a `localhost:57504` to `localhost:57504` UDP “connection”?

$ sudo netstat -ap | grep postg tcp 0 0 localhost:postgresql 0.0.0.0:* LISTEN 1567/postgres udp 0 0 localhost:57504 localhost:57504 ...
-3
votes
1answer
1k views

What do `0.0.0.0:*`, `[::]:mysql`, and `[::]:*` mean in netstat output?

$ sudo netstat -ap | grep postg tcp 0 0 localhost:postgresql 0.0.0.0:* LISTEN 1567/postgres udp 0 0 localhost:57504 localhost:57504 ...
1
vote
1answer
52 views

Does `netstat` output different sockets with and without -n?

man netstat says --numeric, -n Show numerical addresses instead of trying to determine symbolic host, port or user names. Does netstat output additional sockets with -n than without -n? Or ...
1
vote
0answers
40 views

System statistics from different utilities don't agree

I am running an Aliyun instance with 8 vCPUs to do some high performance computing, so I want to make full use of the machine. In other words, extremely high CPU usage is not a problem; instead it is ...
0
votes
2answers
207 views

How can I find the mapping on `$DISPLAY` after `ssh -X`?

On machine B, I remote access machine C $ ssh -X t@C $ echo $DISPLAY localhost:10.0 How can I find/verify the mapping of $DISPLAY on C to $DISPLAY on B? Can it be done by the following command ...
1
vote
1answer
98 views

confused by netstat result

I ssh to my ubuntu server and run sudo netstat -a -p and I get this: tcp 0 0 ip-172-31-25-123.us:ssh mailDOTjjtoursDOTcom:54531 ESTABLISHED 1516/sshd: ubuntu [ And when I use my other ...

1
2 3 4 5