pub fn parse_port(s: &str) -> Result<u16, String>Expand description
Validates that a port number is within the usable range (1–65535).
Port 0 is rejected because it causes OS-assigned ephemeral port binding, which is not meaningful for a simulator that clients need to connect to.