Monday, 25 November 2019

linux - Meaning of netstat output?

When I type "sudo netstat -an", this is part of the output I get:


Proto Recv-Q Send-Q Local Address               Foreign Address             State      
tcp 0 0 192.99.202.17:39922 23.82.16.66:29842 TIME_WAIT

I am confused as to what the first line is saying.


Is it saying a server from 23.82.16.66 is connecting to this server through port 29842, or port 39922?


How do I know it's an incoming connection from that IP, as opposed to an outgoing connection from my server to that IP?


I'm running CENTOS 6.7, if that matters.

No comments:

Post a Comment

How can I VLOOKUP in multiple Excel documents?

I am trying to VLOOKUP reference data with around 400 seperate Excel files. Is it possible to do this in a quick way rather than doing it m...