public ServerBuilder localPort(int port, Iterable<SessionProtocol> protocols) {
        final long portGroup = ServerPort.nextPortGroup();
        port(new ServerPort(new InetSocketAddress(NetUtil.LOCALHOST4, port), protocols, portGroup));

        if (SystemInfo.hasIpV6()) {
            port(new ServerPort(new InetSocketAddress(NetUtil.LOCALHOST6, port), protocols, portGroup));
        }

        return this;
    }
Adds a new {@link ServerPort} that listens to the loopback {@code localAddress} using the specified
{@link SessionProtocol}s. Specify multiple protocols to serve more than one protocol on the same port:

<pre>{@code
ServerBuilder sb = Server.builder();
sb.localPort(8080, Arrays.asList(SessionProtocol.HTTP, SessionProtocol.HTTPS));
}</pre>
core/src/main/java/com/linecorp/armeria/server/ServerBuilder.java