What's listening, what's connected
netstat (and its modern Linux replacement ss) shows network connections, listening sockets, and routing tables. The two questions you ask it constantly: "what's listening on port X?" and "who is this machine actually talking to right now?" Every "port already in use" or "connection refused" diagnostic starts here.
Reading the output
Each line shows protocol, local address:port, foreign address:port, state. Local 0.0.0.0 = listening on all interfaces. Local 127.0.0.1 = loopback only. Listening sockets show state LISTEN; established connections show ESTABLISHED.