Understanding Well-Known, Registered, and Dynamic Ports: A Comprehensive Overview