util script for grouping netstat output by ip and port