How do I find out which process is listening on a TCP or UDP port on Windows?

How do I find out which process is listening on a TCP or UDP port on Windows?