public int getPort() {
        return this.port;
    }
Gets the main port the server uses.

@return The main port of the server. {@code -1} indicates that the server isn't bound to a particular port.
grpc-server-spring-boot-starter/src/main/java/net/devh/boot/grpc/server/event/GrpcServerStartedEvent.java