A quick cheat sheet I use a lot:

Notes:

  • Most of these are conventions, not hard requirements. Services can run on non-standard ports.
  • Port numbers only tell you where to connect. The protocol still matters (TCP vs UDP, handshake behavior, encryption, etc.).