IP 端口可以用作字母数字而不是数字吗?

Can IP Port use as alphanumeric instead of numeric?

如果我这样做有可能吗? http://myurl:abc

端口:abc 而不是 123

不,不能这样。端口总是一个数字,如 per specification.

没有

根据RFC3986,URI 的端口部分是这样定义的(我的粗体):

The port subcomponent of authority is designated by an optional port number in decimal following the host and delimited from it by a single colon (":") character.

该 RFC 已由 RFC6874 和 RFC7320 更新,但两者都不会影响相关部分的任何更改。