PortNumbers static class PortNumbers Contains a collection of default ports. Documentation Code public static string GetDefaultPort(string protocol) Gets the default port for the given protocol, if the protocol is a relative scheme protocol.