nethogs

Monitor network bandwidth usage grouped by process

brewmacoslinux
Try with needOr install directly
Source

About

Net top tool grouping bandwidth per process

Commands

nethogs

Examples

Monitor all network interfaces and show bandwidth per process$ sudo nethogs
Monitor a specific network interface (e.g., eth0)$ sudo nethogs eth0
Monitor multiple interfaces and refresh every 2 seconds$ sudo nethogs -d 2 eth0 wlan0