I have a RHEL server with several application on it and I am attempting to figure out which one of them is making calls to an external web service. I have TCP dumps that show the calls being made and through various tools I am able to determine what ephemeral port is making those calls. However, I am unable to figure out how to map that ephemeral port to a pid.
Is there any way to map an in-use ephemeral port to a pid or some other indicator as to what file is making the call?