Tcp 0 0 10.224.38.158:8080 10.225.239.6:29634 ESTABLISHEDĪn indiscriminate grep -c or awk | wc -l would return "7," but there are actually only "3" inbound connections. The trouble with a blanket search for a port is that you'll also pick up outgoing connections, skewing your numbers.Įg: tcp 0 0 10.224.38.158:8080 10.225.239.6:38194 ESTABLISHED I know this is an old question, but I found it while looking for a tidy way to count all incoming connections to a given port.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |