I am having trouble with L2TP/IPSec on my OS X 10.7.2 machine and I was wondering what is the best way to figure out which process is taking particular sockets or ports;
My related posts (below), were more particular, but I couldn't figure it out. I am asking more general question, hopefully there would be someone who could help. OS X: how to figure out what prevents L2TP/IPSec from running correctly and OS X 10.7, can't log into any L2TP VPN server
Edit: I tried netstat and lsof but didn't see anything related to my problem. Also it isn't the router (other machines behind it work fine); it is not the firewall (same issue with it off) or LittleSnitch (same issue with it off). There was CiscoANyconnect installed, but the issue persists even after uninstall. My hypothesis is that it changed something that persists even after uninstall.