If Linux, I would write some firewall rules to match inbound and outbound traffic
for each remote IP address, and then query the packet counters to find out how
much traffic came from / went to each other IP address.
I’m sure the same thing is possible for BSD, possibly therefore also for
MacOS.