Question is really outside the scope of Moodle forums which are about the moodle application itself.
Now that I've said that ... you've some research to do.
Suggest using this as your primary resource:
Hello may be you can try iftop command or if you want to use better things you can use Wireshark tool. You can also integrate newrelic apm platform that would generate pin pointed dependency graphs of outbound requests.