“When you bind to a port, it puts a pointer to your socket in that table.”
Most developers type a port number into a config file every week and could not tell you what happens next. Butler walks through it with netcat and a story set in a coffee shop. The answer is less magic than people assume. A port is an entry in a kernel table, and that is all.