Finding Open Socket Processes
OK, this is a pain I've run into several times so I wanted to jot it down here. Basically, if you have a process that is holding on to a socket the easiest way to find out what that is (on linux) is the fuser command:
fuser -u -v -n tcp 6024
This will get all the processes that have the port 6024 open. No rocket science, but it's nice to have.