TCP Connection – How to Determine Creation Time on Linux

linuxnetworkingtcp

How can I find out at what time a currently open TCP connection was established on Linux?

Best Answer

I was able to use lsof to get the file descriptor, then ran stat /proc/<PID>/fd/<file descriptor> to get the date.