How do I find the name of the program running on a port?

PORT mode 4 returns the name of the program running on a port.