Count Connections per IP on Linux

Which remote addresses hold the most connections to a port. The first check during a flood. Fill in the details below to get the exact command.

  • Free
  • No Sign-Up
  • Runs in Your Browser

Count Connections per IP

ss -Htn state established '( sport = :443 )' | awk '{print $4}' | sed 's/:[0-9]*$//' | sort | uniq -c | sort -rn | head -20

Which remote addresses hold the most connections to a port. The first check during a flood.

Linux Command Generator

The command

Commandss -Htn state established '( sport = :443 )' | awk '{print $4}' | sed 's/:[0-9]*$//' | sort | uniq -c | sort -rn | head -20
CategoryNetwork
Works OnUbuntu, Debian, AlmaLinux, Rocky Linux

Which remote addresses hold the most connections to a port. The first check during a flood.

Questions

How do I count connections per ip on Linux?
Run: ss -Htn state established '( sport = :443 )' | awk '{print $4}' | sed 's/:[0-9]*$//' | sort | uniq -c | sort -rn | head -20

Run VMs for other people?

Frabs stops spam, scans and floods leaving your customers' VMs, before the abuse report lands.