lsof is a tool to list all the open files on the system. From this information, processes creating network sockets can be found, among other things.