Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [netstat]

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

0
votes
2answers
59 views

I am trying to find out if someone is running a server on my Ubuntu without my knowledge

I know this sounds a bit odd. But I have been having hacking done on my computer and I am locked out of my "su" user now for some reason. My computer cpu is running abnormally high and I think there ...
1
vote
0answers
69 views

Glassfish - MongoDB - Too many open files

I am having a backend deployment running on a glassfish server, the frontend of my application sends REST request when it needs some data. Also the backend is connected to a mongo database: ...
1
vote
0answers
195 views

OpenSuSE removed netstat and ifconfig. What are the plans for ubuntu?

OpenSuSE removed netstat and ifconfig. What are the plans for Ubuntu? Will Ubuntu remove these commands, too?
1
vote
2answers
240 views

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 ...
0
votes
1answer
137 views

Ubuntu 17.10 with two NICs: routing requests to correct NIC

I have done a bunch of searches about this, and found a lot of answers that don't quite seem to fit my question. If this question has been answered already, I apologize. My PC has Ubuntu 17.10, and ...
3
votes
1answer
12k views

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
0
votes
2answers
136 views

checking established ports

Is the command which I am using is wrong to check a port is established or not? count=$(netstat -an | awk '$4 ~ /:'"$PORT"'$/ && $6 == "ESTABLISHED" {print $0}'| wc -l) And taking the $count ...
3
votes
1answer
920 views

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

How to list processes communicating with the Internet

I'm trying to detect if my target processes are communicating with the Internet. Here is what I edit my script named test.sh: a=$(pgrep -f $1) a=$(echo $a | sed -e 's/ /\\|/g') a="'${a}'" cmd="...
0
votes
1answer
463 views

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 ...
0
votes
1answer
120 views

What does `netstat -antupe` mean?

What does the command netstat -antupe actually mean? I understand that netstat is used to view the status of the Network but what does the -antupe flag do?
-1
votes
1answer
1k views

Open ports - Netstat

I am running these commands to get a list of all open ports on my Ubuntu 16 server. I was wondering why ports 1-25 appear to be open? Is this a security risk or is this normal for an Ubuntu server? ...
0
votes
1answer
377 views

Can I use `netstat` to find adware, spyware, malware or ransomware?

First off I ran netstat -a to list all but it's 1,000 lines of 80+ chars / line and won't fit into a question. So I narrowed it down to netstat -l -e to list connections that are "listening" to my ...
0
votes
1answer
470 views

How to auto ban an IP when he access some ports?

I have a vps, which host some service only I used. Today, I found someone scaning my vps by netstat -ntu | awk '{print $5}' |sort | uniq -c | sort -n And found some result(I have removed my ip from ...
0
votes
1answer
212 views

netstat distinct values

how can I check netstats on ubuntu for a specific port? example netstat -? grep: 80 but with a twist so it does this as well it should show only distinct ip addresses but any duplicated ip ...
1
vote
1answer
353 views

A more efficient way to sort the result of netstat command

I was trying to sort only the IP addresses not related to firefox and write them in a file. I ended up with this command line, did the job but I am wondering if there is a way to do better. netstat -...
0
votes
1answer
136 views

How to get information out of netstat's results

I wanted to know the servers behind my connections and with a browser closed this is the result of my netstat command. tcp 0 0 xxx.xxx.xxx.xxx:xxxxx ec2-54-229-105-92:https TIME_WAIT ...
0
votes
1answer
173 views

What is netstat -r command used for?What does the different flags mean: MSS, window, etc [closed]

What does the different flags mean: MSS, window, etc
3
votes
1answer
5k views

Linphone: could not start tls transport on port 5060, maybe this port is already used?

update: Probably this is because of NAT, although that might an Ekiga specific problem. I've tried multiple clients on this machine, cannot get any SIP clients to work for me. On the same network, ...
2
votes
1answer
5k views

Using Nmap to port scan [closed]

I'm trying out Nmap and have encountered a problem. Before anything, I would like to tell you that I am using this on my own laptops at home :) When I use Nmap <target_IPAddress> it shows me ...
0
votes
0answers
1k views

netstat not listing apache IPv4 listen sockets

My apache is listening for *.80 and *.443 connections. And it works fine: ** root@syslog-ng ** /etc ** Mon Nov 07 13:33:51 # telnet 127.0.0.1 80 Trying 127.0.0.1... Connected to localhost. Escape ...
3
votes
2answers
4k views

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 ...
0
votes
1answer
536 views

Bind port on external ip

I would like to bind my 3306 port on 0.0.0.0. Actually when I do : netstat -an | grep 3306 It returns : tcp 0 0 127.0.0.1:3306 0.0.0.0:* LISTEN How can I do ...
2
votes
1answer
1k views

Is ipv6 disabled or not

I tried to completely disable IPv6 on my Ubuntu 14.04 according to this post But netstat shows it is in use. Why? ~ > sudo sysctl -p|grep ipv6 net.ipv6.conf.all.disable_ipv6 = 1 net.ipv6.conf....
62
votes
3answers
92k views

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

How to change/forward IP:Port mapping

I have a application that binds to 127.0.0.1:9000. I can't access from other nodes on the network due to this. I want it to appear as my-machine-name:9000 instead. How can I do this in Ubuntu. ...
0
votes
1answer
2k views

Port is not open

This is could be a database issue but to check if related to network configuration. To start DB i USE : Running rethinkdb 2.3.4~0trusty (GCC 4.8.2)... Running on Linux 3.19.0-39-generic x86_64 ...
0
votes
0answers
432 views

netstat shows many “Established” connections by libpepflashplayer.so . Should I be worried?

I fired netstat -tpn | grep -i established and it shows many occurrences of libflashplayer connecting to external IPs. What are all these? P.S - Ubuntu 14.04 LTS
3
votes
0answers
113 views

Which mysterious process sent data out of my computer?

Using vnstat, I observed a lot of uploaded data from my computer and I don't know which process sent data out of my computer. I installed nethogs to monitor live data transfer but seems nethogs ...
0
votes
1answer
376 views

Normal Netstat?

So I used netstat to see any listening ports, and the following is the result. Does anyone know if this is a normal result? What is the keyring-Ru86sa/control one? Thanks! unix 2 [ ACC ] ...
2
votes
1answer
928 views

Access nodejs application port from external IP

I have an application with port 9901 and hosted in online server. If i check this application from the same server with http://127.0.0.1:9901/ or http://127.0.0.1:9901/ the application is run ...
0
votes
1answer
158 views

Missing sshd process name from netstat results

We use an alias for getting information how many established connections are for sshd process name. Recently we updated all our packages. Even we have lots of connections to sshd server, they are not ...
3
votes
1answer
11k views

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

What are this zeros denote? [closed]

I'm new to Ubuntu and networking , I checked port 6703 and got this: tcp 0 0 0.0.0.0:6703 0.0.0.0:* LISTEN 5124/java what this zeros denote ? i got ...
1
vote
2answers
631 views

How to check this port?

i'm on ubutun 12.04LTS and this error appeared ChannelException: Failed to bind to: 0.0.0.0/0.0.0.0:6702 need help to check where is the problem ? can i check if the port are busy or closed ? and ...
1
vote
0answers
174 views

Port is open but service is stopped

I have interesting statstistics on open ports on ubuntu. I scan my server from outside with nmap And I see that 110/tcp open pop3 And many other ports are also open But on the server itself ...
2
votes
1answer
1k views

Custom port names for netstat

Whe I use the netstat -l command I get the port names, and when I add the -n param I will get the port numbers. There is a way to set custom names to other ports?
4
votes
4answers
18k views

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 '/0.0.0....
2
votes
1answer
197 views

what is the path start with @

What is the @ character in beginning section of sockets's path in output of "netstat -a" command? unix 3 [ ] STREAM CONNECTED 10868 1261/X @/tmp/.X11-unix/X0 unix 3 ...
0
votes
1answer
53 views

Universal Way to Know Router's Address

How can I know what the router's address is when I am on multiple interface? I know by using netstat -rn I can have the dominate interface's gateway, which is the router's address. But what about ...
10
votes
1answer
30k views

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 ...
33
votes
1answer
166k views

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?
123
votes
7answers
675k views

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, ...
3
votes
2answers
2k views

PID's associated with Chromium multiple tabs and windows?

While reading about Linux, I got a $netstat -tulpn to find out which process is listening Upon a port. I got: anupam@JAZZ:~$ sudo netstat -tulpn [sudo] password for anupam: Active Internet ...
11
votes
4answers
20k views

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 ...