Questions tagged [netstat]

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

71 questions
168
votes
8 answers

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, closed?
Router
  • 2,321
  • 3
  • 15
  • 6
54
votes
2 answers

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?
Router
  • 2,321
  • 3
  • 15
  • 6
11
votes
1 answer

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
fantamoja
  • 143
  • 1
  • 2
  • 7
8
votes
3 answers

What does the -tulpn option mean for netstat?

For finding out which ports of the machine are being opening by which services, I used: netstat -tulpn I checked the man page for netstat command, but I found nothing about this option. What's the meaning of the -tulpn option?
3
votes
1 answer

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?
Ivan Cachicatari
  • 252
  • 1
  • 2
  • 9
1
vote
2 answers

netstat command on WSL doesn't give any messages

$ netstat -nap (No info could be read for "-p": geteuid()=1000 but you should be root.) Active Internet connections (servers and established) Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name Active…
EnDelt64
  • 147
  • 3
  • 10
1
vote
1 answer

What PID/program is this?

I ran the netstat command and I got a program with PID/program description as 3061/host. The protocol was udp. The local address was 0.0.0.0:37089. The foreign address was 0.0.0.0:* Is there some place I can get pid information on the…
0
votes
1 answer

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

What does the different flags mean: MSS, window, etc
0
votes
1 answer

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 reported by process name in netstat. Process name…
ADDISON74
  • 101
0
votes
1 answer

What does Netstat -tlnp mean and do

What does netstat -tlnp do and mean? I have read the man pages for netstat however can only find a answer for -l not the other options
Joe
  • 465
  • 1
  • 5
  • 10
-1
votes
1 answer

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? I have specifically changed the port for ssh to…
JoaMika
  • 135
-1
votes
1 answer

Hide Real IP - Ubuntu

Can i hide the real IP of my machine in "netstat -n"? Perhaps using the iptables masquerade function? (When the user is logged into the application and runs the netstat -n command, he can view the machine's ip.) The purpose of hiding the real ip…
Renan
  • 1