Selecting the wrong type is where you went wrong. Ports fields only complete port type aliases.
The input validation may need some work, it's always fuzzy with aliases since there are many things that are valid depending on the type (IPs, ports, hostnames, other aliases, port ranges, URLs, etc)