Localhost help

What runs on each port, how to open it, and how to fix “refused to connect”. Port checker: get the commands to see what is using a port.