To examine the set of files that a process is using (including special types of files, like sockets), you can use a tool such as lsof on Linux systems, (
lsof -p {processID}
)