In this project must be need of TCPdump requires root privileges and that can help monitor traffic by specific process ID as IPs and ports.
It would be simpler to monitor specific IPs and ports used by the target process.
Let me know if you have any concern regarding the same.
Regards,