I am trying to debug a problem with a apache server, wherein I need to find the application that uses a particular port number. I tried using netstat, but didn't help.
The scenario is that I am using mitmproxy and SSL is also involved, and I find in wireshark a packet where the source and destination IPs are same and are trying to do SSL, but have different port numbers (I can't understand why this packet exists) . I need to find who controlled those port numbers at that instance, so I could possibly find which application is causing this problem.
Can anyone suggest a way ?
lsof? Did that work? – dan Aug 06 '14 at 10:17