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
3
votes
0answers
773 views

dnsmasq uses many ports

I've executed the command sudo netstat -veepa -n -W and found many local ports which are used by dnsmasq: Proto Recv-Q Send-Q Local Address Foreign Address State User ...
3
votes
0answers
294 views

What does “incoming packets delivered” mean in “netstat -s” output on Linux?

While running netstat -s on Linux, I got below statistics for IP protocol (information for other protocols are omitted), Ip: 322937 total packets received 0 forwarded 0 incoming packets ...
3
votes
0answers
710 views

why do I have so many open socket handlers and netstat DGRAM entries?

I run on a RPi (Raspbian 3.12.35+ #730 PREEMPT Fri Dec 19 18:31:24 GMT 2014 armv6l GNU/Linux) a daemon in Python 2.7.8 which queries various APIs via requests and provides itself an API for another ...
2
votes
2answers
5k views

Where are netstat's -t and -u flags documented?

I use the following command to find open ports on my servers: $ netstat -ntulp I've probably found that on some random website over the years. However, I cannot find where -t or -u are documented. ...
2
votes
2answers
3k views

Is there documentation for /proc/net/netstat and /proc/net/snmp?

There is a long list of stats in /proc/net/netstat and /proc/net/snmp, both of which I think come from the net-tools project. Is there any official or unofficial documentation about these fields? Or ...
2
votes
1answer
421 views

netstat, listing connections correctly

I have 2 machines A 192.168.0.40 (CentOS) B 192.168.0.41 (Debian) Gateway 192.168.0.2 Now I did set a port forwarding using firewallD, from A port 2245 to B port 22 Connection established from ...
2
votes
1answer
403 views

lxterminal in the netstat output

Can you explain the following lines in the netstat output? Active UNIX domain sockets (w/o servers) Proto RefCnt Flags Type State I-Node Path unix 2 [ ] STREAM ...
2
votes
1answer
906 views

reading TCP connection list from /proc

I'm trying to implement code that enumerate all existing TCP connections per process (similar to netstat -lptn). I prefer to implement it myself and not to rely on netstat. In order to do that, I'm ...
2
votes
2answers
1k views

Incoming and outgoing traffic when NOTHING is running

In a system with nothing running (at least nothing I know of). Listening of incoming and outgoing traffic prints this output: 192.168.1.1 => all-systems.mcast.net 0b ...
2
votes
3answers
5k views

What process is listening on a port?

[root@SERVER ~]# netstat -tulpn | grep 44316 tcp 0 0 :::44316 :::* LISTEN - [root@SERVER ~]# lsof -i | grep 44316 [root@...
2
votes
1answer
580 views

number of HTTP sessions=number of TCP Sessions?

I have a software that has an HTTP server listening on port 20001 and running on a Unix machine. The logfile of the HTTP server says it currently has 600+ active HTTP connections, however netstat -an |...
2
votes
1answer
5k views

Understand netstat -i flgs

Can anyone explain for me what each option in Flg means? [root@apple ~]# netstat -i Kernel Interface table Iface MTU Met RX-OK RX-ERR RX-DRP RX-OVR TX-OK TX-ERR TX-DRP TX-OVR Flg eth0 ...
2
votes
2answers
3k views

Per Socket network Buffer queues utilization

Is there a way to get a per-socket send and receive Queues utilization on Solaris similar to the way that Linux' netstat displays it? Example on Linux: Proto Recv-Q Send-Q Local Address ...
2
votes
1answer
82 views

Why doesn't `netstat` show Screen client but only Screen server process?

From https://unix.stackexchange.com/a/485290/674 Further down in the netstat output is UNIX sockets: Active UNIX domain sockets (servers and established) Proto RefCnt Flags Type State ...
2
votes
2answers
70 views

Using a if/else statement in shell for netsat

My goal is to ensure that email connections are limited to outbound only So I have two shell commands one is netstat -an | grep ':25' | grep -v '127.0.0.1' | wc -l which prints out 1 The command ...
2
votes
1answer
4k views

How to check which user is responsible for a utilizing a particular port?

I wanted to know which user is running a particular port no. For e.g. netstat -an | grep ':6016' which user is resposible for "6016" port no.
2
votes
1answer
2k views

Why is the 'foreign address' not IP address but something like this?

I never learned network programming and this kind of stuff properly. Only know very basic stuff like IP address and just a vague concept of what ports and TCP/IP are. Here, I connected to my lab's ...
2
votes
1answer
9k views

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 ...
2
votes
2answers
332 views

What Port is Squid Running on in OS X/BSD

I've recently starting playing around with the Squid caching server on my OS X based computer. I'm curious if there's a way to tell which port Squid is running on using netstat or other standard unix ...
2
votes
1answer
8k views

TigerVNC is running, but not listening on any port?

I'm on CentOS 7 with TigerVNC installed. I have started it up (I think), but I can't connect to it. Here's what leads me to think it's running: $ vncserver -list TigerVNC server sessions: X ...
2
votes
2answers
7k views

Open a port in my CentOS

I'm trying top open a port on my CentOS machine: I edit the /etc/sysconfig/iptables file and add my rule: -A INPUT -p TCP -m state --state NEW -m tcp --dport 143 -j ACCEPT Then I restart the ...
2
votes
3answers
884 views

VPN and gateway problems

I've got a corporate VPN, which I use to access the Internet. When it's on, I cannot reach the servers inside the corporate network anymore, so I think there are some problems with the gateway setup. ...
2
votes
1answer
71 views

Red Hat Linux - port is in listening state but could not find process ID

I have this problem for my application, port is in listening state but process ID is not showing up. Used below commands. This is cloud AWS server Red Hat Linux. $ netstat -tulpn tcp 0 ...
2
votes
3answers
169 views

script to verify running services on specific ports

I got a task to do. I have to search whether, are there running services on below ports. ports 53 & 55 If not I have to send alerts. Please correct my logic and syntax in below code for one port ...
2
votes
1answer
690 views

nmap does not report all open ports?

An excerpt from the output of netstat: tcp4 0 0 192.168.2.48.49620 stackoverflow.co.https ESTABLISHED tcp4 0 0 192.168.2.48.49554 stackoverflow.co.https ESTABLISHED ...
2
votes
2answers
1k views

netstat command doesn't work anymore on the new dedicated server

I was using the following command on my previous dedicated server with the same version of the FreeBSD installation: # uname -a FreeBSD 9.2-RELEASE FreeBSD 9.2-RELEASE #0 r255898: Thu Sep 26 22:50:31 ...
2
votes
0answers
268 views

netstat show a listen port but pid don't exist and can't find it with lsof

I am running macOS(0.13.6) and while trying to test tinc, I get a warning that port 0.0.0.0:655 is already in use. This is the output I get from netstat: $ sudo netstat -anv -p udp Active Internet ...
2
votes
2answers
218 views

find pid of open tcp port, as a regular user

From local host I'm ssh tunneling some remote host:port to my local host:port, so anybody on a remote host can use their "local" port to access my port via that tunnel. I'm using some regular (non-...
2
votes
0answers
301 views

Getting incomplete output in netstat

Apache tomcat is running on port 8080, but netstat -tlnp does not show it, instead its output gets truncated with a binary character: # netstat -tlnp Active Internet connections (only servers) Proto ...
2
votes
0answers
548 views

Why doesn't netstat show me some ports?

When port-scanning my computer with another machine, I find three open ports: Starting Nmap 7.40 ( https://nmap.org ) at 2017-05-08 22:14 CEST Nmap scan report for laptop.local (192.168.11.103) Host ...
2
votes
0answers
5k views

List services with port numbers

I would like to list all installed services (especially running) with their port numbers, where they are assigned. Could you be so glad and help me with this command?
2
votes
0answers
855 views

why i can see ipv6 socket with ipv6 stack disable?

I try to disable complety ipv6 on a Linux Debian 7 (wheezy) However , things escape me. In my case, i test with grafana process (I have same issue with munin, rpcbind etc) Method 1 : with sysctl ...
2
votes
0answers
311 views

Count all network requests to a specific host

I have a mock server running on my localhost that mocks out a back end service that I need for my app. One thing that I want to do is count the number of requests [GET, POST, PUT, DELETE,...] that my ...
2
votes
0answers
971 views

How do I find out how long a socket is in CLOSE_WAIT?

I have a server relatively with a high number of sockets in CLOSE_WAIT I want to know the age of each socket, to know if it's a real problem (sockets not getting closed) or that the sockets are ...
2
votes
1answer
869 views

Information about the 1630/master app

When I run $ sudo netstat -a --programs | grep LISTENING | grep 1630 I will get this output. Do you know what good are processes running under this app name? Why they are running on my system and if ...
1
vote
3answers
372 views

How can I identify processes that use network facilities, and can they be killed?

In the output of netstat -a | grep LISTEN there are usually a lot of processes. How (where) can I find out information about them, what is their purpose in the system and if I can kill them? Which ...
1
vote
1answer
6k views

Solaris 10 - Find service attached to listening port

I'm diagnosing an old Solaris 10 build and during port scans I've found an open port that's not on the approved list for this server. I've tried various combinations of netstat switches but I can't ...
1
vote
4answers
714 views

Bash: How to print additional column matching IP Address to Name

I'm using netstat to collect information about connected IP's. And I have the following format: netstat -tn 2>/dev/null | awk '/:80 / {print $5}' | sed 's/.*::ffff://' | sed 's/:.*//' | sor t | ...
1
vote
1answer
22 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
1answer
8k views

How to figure out the meaning behind Recv-Q and Send-Q from netstat?

netstat -ntp Active Internet connections (w/o servers) Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp 8216172 0 127.0.0.1:9503 ...
1
vote
2answers
77 views

Netstat showing a strange process named “public”

I have a several process named "public" who are listen for TCP connections. Due to this extremely commonly name, I was not able to identify what is this process and what is his purpose. ...
1
vote
2answers
1k views

what is 'smakynet' in the netstat result?

after logging into a server, I used netstat to check out the ports of this server and wanted to find which port was communicating with me My IP is 143.248.143.198 and my search results are like ...
1
vote
1answer
123 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 ...
1
vote
2answers
111 views

What is the server-client relationship between a terminal emulator, a window manager and a X server processes?

In APUE (see the figure below), how do a terminal emulator process and a window manager (e.g. openbox) process communicate? Is a temrinal emulator process a client of a window manager process, based ...
1
vote
1answer
62 views

How to check which interface(s) a service is bound to?

netstat and similar commands provide information on services bound to an IP. This information is however limited when a service binds to "all available interfaces": root@srv ~# netstat -tulpn | grep ...
1
vote
1answer
17k views

Why doesn't Tomcat show up when I grep netstat's output for 8080?

I am doing the following to determine if Tomcat is running: $ whoami voops voops@esavo00:~/apache-tomcat-7.0.57/bin# $ ps -ef | grep -i tomcat | grep -v grep voops 8973 1 0 Apr22 ? 00:...
1
vote
3answers
815 views

Status of network ports

I hope it is possible to get the necessary details of each network port from /etc/services. If I have to develop a C++ program to get the status of each port how should I start it? I am not allowed ...
1
vote
1answer
104 views

Significance of output of netstat -i command in AIX

The output of the netstat-i command on AIX 7.1 / AIX 7.2 : Name Mtu Network Address Ipkts Ierrs Opkts Oerrs Coll en0 65390 link#2 e2.f9.3a.a8.fc.2 1205 0 71 ...
1
vote
1answer
77 views

Open connections with unresolvable domain

Output of sudo watch lsof -i and sudo watch netstat -tp show ESTABLISHED connections with unresolvable domain (e.g., host, dig woldn't resolve, trying to access domain directly via URL from firefox ...
1
vote
1answer
582 views

netstat output is “ESTABLISHED -” (no program name attached). What is the issue?

My server program is running and I am trying to establish some TCP connections from redis client. I am trying to establish 1150 client connections, and when I check netstat at server side I find a ...